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