How to configure tomcat manager on tomcat7
Posted: Sun Apr 28, 2013 9:42 am
Get in to the directory where apache-tomcat is installed.
In our example
cp -ar tomcat-users.xml tomcat-users.xml.bak
> tomcat-users.xml
Now access IP_ADDRESS:8080 and when it shows a pop up give username as "tomadmin" and password as "Pass123" to login.
In our example
Make a backup of "tomcat-users.xml" if you want and then empty the contentscd /usr/share/apache-tomcat-7.0.39/
cd conf
cp -ar tomcat-users.xml tomcat-users.xml.bak
> tomcat-users.xml
Add the below lines.vi tomcat-users.xml
Code: Select all
<tomcat-users>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="mybestpassword" roles="manager-gui,admin-gui,manager-script"/>
</tomcat-users>