How to install and configure Tomcat Admin

Source: Internet
Author: User
Tags apache tomcat download

Tomcat 5 allows you to easily configure servers by running the configuration application in a web browser. This application is called Tomcat administration Web application. However, Tomcat 5.5 and later binary core installation versions no longer provide Tomcat administration Web applications. To install the latter, you must download and install it separately. Tomcat does not provide an automatically integrated installer for the administration Web application. This article describes the installation and configuration process.

Step 1: Check whether the administration Web application is installed in your tomcat.

First, make sure that the Tomcat service is running. In the browser, type http: // localhost: 8080/admin. If you see the Tomcat web server administration tool page, it indicates that the administration Web application has been installed. You can save some time. If you see
Tomcat's administration Web application is no longer installed by default. download and install the "admin" package to use it.
If you have read this article correctly, it is specifically for you.

Step 2: Download the admin package.

To be honest, many people cannot find where to download it. This does not blame you. The instructions on the Apache Tomcat download page are not very clear. Of course, the technical documentation is not very detailed. But what else can you complain about when people have provided you with powerful open source software? It's strange that you have not got enough effort.

Take a closer look, http://tomcat.apache.org/download-55.cgi, the fourth item under the binary distributions column on the download page, administration Web application is.

Step 3: unzip the downloaded administration Web application file.

For example, in C:/Tom, you will find that the decompressed file is C:/Tom/Apache-Tomcat-5.5.17. In this case, enter http: // localhost: 8080/admin to check the admin, and you will find that tomcat has not changed anything. Because the unzipped admin file has not been configured in the Tomcat System. The following steps show you how to configure the admin file to the Tomcat server.

Step 4,Set C:/Tom/Apache-Tomcat-5.5.17/CONF/Catalina/localhost/admin. xml
Copy the admin. xml file to the C:/program files/Apache Software Foundation/tomcat 5.5/CONF/Catalina/localhost. folder. Be sure to place it in the correct path folder.

Step 5,Copy the entire admin folder in C:/Tom/Apache-Tomcat-5.5.17/Server/webapps to the C:/program files/Apache softwarefoundation/tomcat5.5/Server/webapps folder.

Step 6,Open the tomcat-users.xml file in C:/program files/Apache Software Foundation/tomcat 5.5/CONF/with notepad with editing. Add the following line before the last line </tomcat-user>:
<User Username = "admin" Password = "Tomcat" roles = "Admin, Manager"/>
Note that username/password can be any combination you like, but roles = "admin" cannot be changed at will.

Step 7: restart Tomcat server,In the web browser, type http: // localhost: 8080/admin. If you can see the login interface of the Tomcat server web administration tool, you are done. If the preceding page is not visible, check the proxy server settings of the browser to accept localhost.
 

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.