Apache Tomcat 7.0 Manager APP, apachetomcat

Source: Internet
Author: User
Tags apache tomcat

Apache Tomcat 7.0 Manager APP, apachetomcat

Solve the password problem when Tomcat 7.0 enters the Project Management page

 

The manager management role is missing according to the prompts in the red box, so we find the tomcat-users.xml file under the conf folder of Tomcat, add the management role, after adding is displayed

1   <role rolename="tomcat"/>2   <role rolename="role1"/>3   <role rolename="manager-gui"/>4   <user username="tomcat" password="tomcat" roles="tomcat"/>5   <user username="both" password="tomcat" roles="tomcat,role1"/>6   <user username="role1" password="tomcat" roles="role1"/>7   <user username="admin" password="1" roles="manager-gui" />

Note: Logon Name: admin Password: 1

 


Apache-tomcat-7011 cannot access the Manager management App Project

Hello, I'm glad to answer your question:
In the tomcat folder to find the conf folder in the tomcat-user.xml file, open with notepad, you can see at the bottom tomcat default comment out the user, that is to say to open the tomcat home page is not to go to the Management page.
The method is as follows:
Find
<! --
<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"/>
-->
Put the top <! -- And the bottom --> remove
Add <role rolename = "manager-gui"/>
After <user username = "role1" password = "tomcat" roles = "role1"/>, add
<User username = "manager" password = "your own password" roles = "manager-gui"/>
Restart tomcat and go to the Management page. User name: manager, password: your own password
 
Tomcat 7011 manager app host manager Access Error

Just copy to the conf/tomcat-users.xml directory as I do, that code should remove the comment <! -->
<? Xml version = '1. 0' encoding = 'utf-8'?>
<! --
Licensed to the Apache Software Foundation (ASF) under one or more
Contributor license agreements. See the NOTICE file distributed
This work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(The "License"); you may not use this file except T in compliance
The License. You may obtain a copy of the License

Www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
Distributed under the License is distributed on an "as is" BASIS,
Without warranties or conditions of any kind, either express or implied.
See the License for the specific language governing permissions and
Limitations under the License.
-->
<Tomcat-users>
<! --
NOTE: By default, no user is logged in the "manager-gui" role required
To operate the "/manager/html" web application. If you want to use this app,
You must define such a user-the username and password are arbitrary.
-->
<! --
NOTE: The sample user and role entries below are wrapped in a comment
And thus are ignored when reading this file. Do not forget to remove
<!.. ... & Gt ...... remaining full text>

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.