找到目录../tomcat/conf/tomcat-users.xml
配置用户密码:
<!--
<role rolename="tomcat"/><role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="root" password="123456" roles="admin-gui,manager-gui"/>