vim $CATALINA_HOME/conf/tomcat-users.xml
增加
<role rolename="manager-gui"/>
<user username="tomcat" password="xxx" roles="manager-gui"/>
vim $CATALINA_HOME/webapps/manager/META-INF/context.xml
注释ip的限制
<Context antiResourceLocking="false" privileged="true" >
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
<Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
</Context>