1, modify the conf / tomcat-users.xml file
<role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="user" password="password" roles="tomcat,manager-gui,manager-script,admin-gui,admin-script"/>
Start tomcat
If you can not log on, continue to the following:
2
If you want to enter / manager / html page, new or edit conf / Catalina / localhost / manager.xml
If you want to enter / host-manager / html page, new or edit conf / Catalina / localhost / host-manager.xml
<?xml version="1.0" encoding="UTF-8"?> <Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /> </Context>
3 mistakes to pass war tomcat package: org.apache.catalina.filters.CSRF_NONCE
Because the war has uploaded packet size limit, modify /manager/WEB-INF/web.xml
<multipart-config> <-- 尺寸最大 50MB--> <max-file-size>52428800</max-file-size> <max-request-size>52428800</max-request-size> <file-size-threshold>0<</file-size-threshold> </multipart-config>
reference:
1, tomcat8.5 enter the management interface
2, to pass war tomcat package error: org.apache.catalina.filters.CSRF_NONCE