Tomcat Manager app and host Maganger

Source: Internet
Author: User

When you think you know something, you don't really know it. For example, Tomcat can have a username and password like JBoss.

Just configure the username and password in the Apache-tomcat-8.0.21\conf\tomcat-users.xml (the Tomcat version is the new 8.0.21)

<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= "Admin-gui"/>
<role rolename= "Admin-script"/>
<role rolename= "Manager-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "Manager-jmx"/>
<role rolename= "Manager-status"/>
<user username= "user" password= "user" roles= "manager-gui,manager-script,manager-jmx,manager-status, Admin-script,admin-gui "/>

The upper part of the note is released.

Save reboot server, login localhost/8080

Click the Manager app in the middle to enter the username and password, user

will be able to access this page

Can manage session here, configure session Expiration time

Look at this list, and then look at the list of folders below and compare them.

Used to think that these folders are useless, even want to delete all, but actually very useful,

Root project: Is the localhost:8080 page project

Docs:tomcat Documentation

Examples of Examples:tomcat

Host-manager,manager: Administration page

Fortunately did not delete, but Tomcat's Plug and Play mode is not allowed to configure, very convenient and fast, delete is also OK.

Click Open Server Status

Do you remember the OutOfMemoryError:PermGen space anomalies? It is said that the former Perspace only 4m! can now finally find out how many M.




Tomcat Manager app and host Maganger

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.