Tomcat Management Platform

Source: Internet
Author: User
Tags html page tomcat tomcat server

Tomcat's management platform
When using Tomcat's WebApps directory to manage Web apps, you can't control the start and stop of a single web App
To this end, Tomcat provides a management platform that lists all Web applications and their status, and provides the ability to control the start, stop, and unload of each Web application

In the address bar of the browser, enter
http://localhost:8080/
Open Tomcat Home page, click the Manager app link on the Tomcat home page to access the Tomcat management platform
The results are as follows

Login dialog box, you need to enter a user name and password

Because it is the first time you are logged into the Tomcat management platform, you do not know the username and password
So, click the Cancel button, and the browser jumps to another page

The browser displays information about the login management platform
According to the message, to access the management platform, you need to add an account with administrative privileges in the Conf\tomcat-users.xml file.

Tomcat 7.0 defines 4 different roles
Specific roles and the content of their management, as follows
Manager-gui-allows access to the HTML GUI and the status pages
Manager-script-allows access to the text interface and the status pages
Manager-jmx-allows access to the JMX proxy and the status pages
Manager-status-allows access to the status pages only

Chinese translation
Manager-gui: Allow access to HTML graphics management Console and Status page
Manager-script: Allow access to text interfaces and status pages
MANAGER-JMX: Allow access to JMX agents and status pages
Manager-status: Only allow access to status pages

Add admin Account
The Tomcat management platform is an HTML page in the Conf\tomcat-users.xml file that adds the Manager-gui role and creates a user with a read role, with a username of itcast, with a password of 123

The code is as follows

<role rolename= "Manager-gui"/>
<user username= "itcast" password= "123" roles= "Manager-gui"/>

Configuration complete, restart the Tomcat server
Access the Manager app connection again, in the login dialog box that pops up
Enter user name Itcast, password 123, click OK

At this point, you will see the Tomcat Management platform page

The Tomcat management platform lists all the Web applications under the WebApps directory.

and provides the ability to manage these web apps
Start, used to start a web App
Stop, used to stop an app
Reload, used to stop and reload a web App
Undeploy, used to indicate uninstall and delete an app

Note that after you modify the Web. xml file for a running website, you must restart the Web app to make changes to the. xml file take effect

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.