Modify the user password for Tomcat

Source: Internet
Author: User

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog: http://blog.csdn.net/huangyanlong/article/details/43970307

When you need to login to the Tomcat management interface, you need a username and password, we can set up in the background.

Locate the path to the configuration file "tomcat-users.xml", such as D:\soft\tomcat6\tomcat6\conf\tomcat-users.xml, to open the configuration file with a text editor Tomcat-users.xml, find the following information and make changes:

<tomcat-users><!--  <role rolename= "Tomcat"/>  <role rolename= "Role1"/>  <user Username= "Tomcat" password= "Tomcat" roles= "Tomcat"/>  <user username= "Both" password= "Tomcat" roles= " Tomcat,role1 "/>  <user username=" Role1 "password=" Tomcat "roles=" Role1 "/>--> <role rolename  = "Manager"/>  <user username= "Tomcat" password= "Tomcat" roles= "manager"/></tomcat-users>

As shown above, a user named tomcat, password Tomcat is added, and the manager role is specified.

(add: "<!---->" symbol is an annotation, where the information is the comment information)

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog: http://blog.csdn.net/huangyanlong/article/details/43970307

Modify the user password for Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.