Enter tomcat, click management module (Manager App) or view server status (Server Status), suggesting 401 Unauthorized
Suggest the following page
The reason is not configured tomat default roles and users, follow the prompts to configure page
Open the tomcat installation directory, enter the conf \ tomact_user.xml
<tomcat-users> <role rolename="manager-gui"/> <role rolename="manager-script"/> <user username="tomcat" password="tomcat" roles="manager-gui"/> <user username="admin" password="123456" roles="manager-script"/> </tomcat-users>
Tomat restart the service, you can log in using the admin
Role Description:
manager-gui
Html allowed access Interface (ie URL path / manager / html / *)
manager-script
An interface allowing access to plain text (i.e. URL path / manager / text / *)
manager-jmx
Allow access to JMX agent interface (ie, the URL path is / manager / jmxproxy / *)
manager-status