Tomcat服务器
Manage App登陆账号设置
文件conf-->tomcat-users.xml编辑
6.0时代
配置例子
账号tomcat 密码tomcat
<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="manager"/>
</tomcat-users>
7.0时代 (具体分界点 不清楚 试一试就知道了)
配置例子
账号admin 密码111111
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="111111" roles="manager-gui"/>
<user username="tomcat" password="111111" roles="manager-script,manager-jmx,manager-status"/>
</tomcat-users>