tomcat-users.xml configuration

tomcat-users.xml configuration

 

 

One: tomcat6 configuration administrator information

1: Open the ~/conf/tomcat-users.xml file under tomcat6, the information about user roles and administrators is in this configuration file.

2: Add the following xml under the <tomcat-users> node of the configuration file

 

  <role rolename="admin"/>
  <role rolename="manager"/>
  <user username="admin" password="admin" roles="admin,manager"/>

3: Start tomat6, enter: Username: admin Password: admin to log in to the administrator interface.

 

Two: tomcat7 configuration administrator information

1: Open the ~/conf/tomcat-users.xml file under tomcat7, the information about user roles and administrators is in this configuration file.

2: Add the following xml under the <tomcat-users> node of the configuration file

<role rolename="admin-gui"/> 
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles=" admin-gui , manager-gui "/>

3: Start tomat7, enter: Username: admin Password: admin to log in to the administrator interface.

 

Quoted from: http://www.cnblogs.com/zfc2201/p/3479547.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326989537&siteId=291194637