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