Below are the steps tested on Tomcat to set or to create default
password of tomcat to Start, Stop, Reload and Redeploy your applications.
For Tomcat 7 and 8:
There is not any default password in tomcat.
Without users, no
one can access manager page of the tomcat.
To do so, we need to create user for tomcat.
Tomcat provide the features to create users in its
configuration file which is
$TOMCAT_HOME/conf/tomcat-user.xml
$TOMCAT_HOME/conf/tomcat-user.xml (DEFAULT)
$TOMCAT_HOME/conf/tomcat-user.xml (after adding a user)
After doing this, restart or start your server.
Now open http://localhost:8080/manager
default manage URL in browser, you will see a pop up to enter username and
password. Enter user=admin and password= admin
Above steps are common for Tomcat 7 and Tomcat 8.
For Tomcat 6
Add user as role
manager
$TOMCAT_HOME/conf/tomcat-user.xml (after adding a user)
<role rolename="manager"/>
<user username="admin"
password="admin" roles="manager"/>
</tomcat-users>
No comments:
Post a Comment