PS:
搭建测试环境的时候开启管理端进行测试 开启管理端
生产环境中 关闭管理端
cat conf/tomcat-users.xml <?xml version="1.0" encoding="UTF-8"?> <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <role rolename="manager-gui"/> <role rolename="admin-gui"/> <user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/> </tomcat-users> 重启 ./bin/shutdown.sh ./bin/startup.sh
8.5之后版本修改
[root@RainGod tomcat]# vim webapps/host-manager/META-INF/context.xml [root@RainGod tomcat]# vim webapps/manager/META-INF/context.xml 127 替换为 \d+\