1 、修改conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
2、修改webapps/manager/META-INF/context.xml
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="^.*$" />
3 重启Tomcat 并登录
进入tomcat目录bin文件夹下
./shutdown.sh
./startup.sh