Java environment configuration-configure tomcat users and tomcat users in java environment

Source: Internet
Author: User

Java environment configuration-configure tomcat users and tomcat users in java environment

Tomcat Manager is a web application that comes with Tomcat and is used to manage Tomcat itself and applications deployed on Tomcat. Tomcat is one of the most widely used servers in the Java field. Therefore, Tomcat Manager has become a widely used function application.

By default, Tomcat Manager is disabled. Tomcat Manager must be logged on and authorized as a user role to use the corresponding functions. However, Tomcat does not have any default users. Therefore, Tomcat Manager can be used only after the corresponding user configuration is performed.

The user configuration of Tomcat Manager is inTomcat installation directory/conf/tomcat-users.xmlFile.

The following configuration is used to configure tomcat user app management and publishing.

<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
<user username="admin" password="admin" roles="manager-script"/>
</tomcat-users>

The following describes the four roles of Tomcat Manager (* is a wildcard in the URL below ):

Manager-gui
Allow access to the html interface (that is, the URL path is/manager/html /*)
Manager-script
Allow access to the plain text interface (that is, the URL path is/manager/text /*)
Manager-jmx
Allow access to the JMX proxy interface (that is, the URL path is/manager/jmxproxy /*)
Manager-status
Allow access to the Tomcat read-only status page (that is, the URL path is/manager/status /*)

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.