tomcat默认密码,admin,manager密码需要自己设置,tomcat-users.xml
- <?xml version='1.0' encoding='utf-8'?>
- <tomcat-users>
- <role rolename="tomcat"/>
- <role rolename="role1"/>
- <role rolename="manager"/>
- <role rolename="admin"/>
- <user username="tomcat" password="tomcat" roles="tomcat"/>
- <user username="both" password="tomcat" roles="tomcat,role1"/>
- <user username="role1" password="tomcat" roles="role1"/>
后面加上一条就可以了
- <user username="admin" password="admin" roles="admin,manager"/>
- </tomcat-users>
后加的是意思是设置admin和manager的用户名和密码为admin