Tomcat Manager 程序的默认用户和密码
找到CATALINA_HOME/conf/tomcat-users.xml, 编辑这个文件, 可以修改用户名和密码, 例如添加一个名为“manager”的角色到该文件中:
<?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.password" roles="manager,admin"/> <user username="manager" password="admin" roles="manager"/> </tomcat-users>
然后重新启动Tomcat