User Account configuration in Tomcat 7

Source: Internet
Author: User

 

Today, I downloaded a tomcat 7 server. After the machine is configured and installed, enter localhost: 8080 to view the status.

Tomcat runs normally. However, you need a password when you click server status to view the specific status. Previously, the configuration was as follows:

<? XML version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "admin"/>
<Role rolename = "manager"/>
<User Username = "admin" Password = "admin" roles = "manager"/>
<User Username = "Sam" Password = "Sam" roles = "Admin, Manager"/>
</Tomcat-users>
 

Note: The above configuration only applies. Versions earlier than 7.0!

In Versions later than 7.0, the following configuration is required:








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.