tomcat 8.5 和9.0如何进入manager?
第一步找到tomcat-user.xml文件
第二步添加如下代码
<role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/> <user username="deploy" password="deploy" roles="manager-script"/>
第三步在 /conf/catalina/localhost/ 下创建或更改manager.xml
并添加如下代码
<Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /> </Context>
最后重启tomcat