I have been exploring for a while after all.
Original tomcat-user.xml is
<? XML version = "1.0" encoding = "UTF-8 "? >
-<Tomcat-users>
<Role rolename = "Tomcat"/>
<Role rolename = "role1"/>
<User Username = "both" Password = "Tomcat" roles = "tomcat, role1"/>
<User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/>
<User Username = "role1" Password = "Tomcat" roles = "role1"/>
</Tomcat-users>
==========================================
Here, role only has the permissions of Tomcat role1, while Tomcat 5.5 needs to be managed by clicking "Tomcat Manager ".
This is because the permission is incorrect.
Now that you know the problem, let's solve it,
1. Disable tomcat5.5
2. Open the tomcat-user.xml (under the conf folder), add a "manager" permission, and add
Login Name Admin, login password admin user, specify its permissions to Manager. The modified tomcat-user.xml is as follows:
======================================
<? 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. Save the tomcat-user.xml and restart tomcat5.5,
Enter http: // 127.0.0.1: 8080/to view the familiar Tomcat interface. Click "Tomcat Manager" and enter the username admin,
Password Admin. The Management page is displayed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.