修改/usr/local/tomcat/conf/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="manager-gui,manager-script,manager-status,manager-jmx"/> </tomcat-users>
设置admin最高权限
参考博文:http://www.cnblogs.com/hedalixin/archive/2011/12/08/2277183.html
原文地址:http://huhaiqing.blog.51cto.com/6338282/1832506