Tomcat-users.xml Configuration management user for Linux tomcat

Source: Internet
Author: User

[email protected] ~]# vi/usr/local/tomcat/apache-tomcat-8.0.14/conf/tomcat-users.xml

Add the following red section

<tomcat-users>
<!--
Note:by default, no user is included in the "Manager-gui" role required
To operate the "/manager/html" Web application. If you wish the use of this app,
You must define such a user-the username and password is arbitrary.
-
<!--
Note:the sample user and role entries below is wrapped in a comment
And thus is ignored when the reading this file. Do not forget to remove
<!.. .. > that surrounds them.
-

<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<role rolename= "Manager"/>
<role rolename= "admin"/>
<role rolename= "Admin-gui"/>
<role rolename= "Admin-script"/>
<role rolename= "Manager-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "Manager-jmx"/>
<role rolename= "Manager-status"/>
<user username= "admin" password= "Vqiao" roles= "Admin,manager,role1,tomcat,admin-gui,admin-script,manager-gui, Manager-script,manager-jmx,manager-status "/>
</tomcat-users>

2. Save, exit

3. Restart Tomcat

[Email protected] ~]#/usr/local/tomcat/apache-tomcat-8.0.14/bin/startup.sh

Tomcat-users.xml Configuration management user for Linux 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.