Tomcat does not come with a default administrator password set up out-of-the-box due to security reasons. Instead, the administrator user must be manually configured.
To set up an administrator user in Tomcat, follow these steps:
- Locate the
tomcat-users.xmlfile in theconfdirectory of your Tomcat installation. - Edit
tomcat-users.xmland add the following lines within the<tomcat-users>tag:
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="admin_password" roles="manager-gui,admin-gui"/>
</tomcat-users>
- Save the changes and restart Tomcat.
Accessing the Admin Interface
Use the following URLs to access the Tomcat Manager and Admin interfaces:
- Manager App:
http://localhost:8080/manager/html - Host Manager:
http://localhost:8080/host-manager/html
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!