1.关闭 tomcat
2.打开tomcat-user.xml(在conf文件夹下),添加一个"manager"的权限,并添加一个
登陆名为admin,登陆密码为admin的用户,指定其权限为manager.修改后的tomcat-user.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"/>
</tomcat-users>
=======================================================
3.保存好tomcat-user.xml,重启动tomcat5.5,
输入:http://127.0.0.1:8080/ 看到熟悉的tomcat界面;
点击“Tomcat Manager”,
输入用户名:admin, 密码admin,看到管理界面