How do I install the Tomcat administration web app?

Source: Internet
Author: User

If you have installed Tomcat 5.5 binaryProgramThe administration web app is not bound to the installer and needs to be downloaded (in tomcat4.1, the administration web app is installed together as part of the tomcat4.1 installation package by default ).

The following describes the installation content of the tomcat5.5 administration web app on Windows2000. Therefore, the installation path name varies slightly with the platform. In this example, Tomcat 5.5.17 is installed on
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5Directory (this is my ownCatalina_home).

    1. decompress the downloaded administration web app file (for example, apache-tomcat-5.5.17-admin.zip ) to a temporary directory using the WinZip or tar command, for example: C: \ Temp .

    2. copy C: \ temp \ apache-Tomcat-5.5.17 \ conf \ Catalina \ localhost \ ADMIN. XML file to this directory
      C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ Catalina \ localhost .

    3. copy the entire directory C: \ temp \ apache-Tomcat-5.5.17 \ Server \ webapps \ admin to the directory
      C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps . this is a overwriting operation. After overwriting, only the Admin directory and some files under the directory are left. (In actual cases, you can copy only the admin folder to the C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps directory, in this way, some of the original files will not be overwritten.)

    1. Add a role configurationC: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ tomcat-users.xml
      File so that you can use the admin role for management. For example, add the following line to the last line (containing</Tomcat-users>In front:

      • <User Username = "admin" Password = "makesomethingup" roles = "Admin, Manager"/>

    2. Restart tomcat ..
    3. Now you can useHttp: // localhost: 8080/adminYou may need to enter the username and password you just added before accessing the administration Web reference. If you still see the error message "no longer loaded" in the browser, You have to refresh the current page (in Firefox, click the "refresh" button and press the Shift key at the same time) or restart the entire browser.

Address: http://wiki.apache.org/tomcat/HowTo#How_do_ I _install_the_Administration_web_app.3F

How do I install the administration web app?

If you install Tomcat 5.5 binaries, the administration web app is not bundled with it; this describes how to add the administration web app to your Tomcat 5.5 installation. (Tomcat 4.1 comes with the administration web app as part of
Binary ).

The following refers to a tomcat 5.5 set up on Windows 2000, so your path names will be different on * nix platforms. In this example, Tomcat 5.5.17 in installed in
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5(This is my
Catalina_home
).

    1. unzip or untar (Be careful to use GNU Tar) the file containing the administration web app files (eg.
      apache-tomcat-5.5.17-admin.zip ) to a temporary directory, eg. C: \ Temp .

    2. copy C: \ temp \ apache-Tomcat-5.5.17 \ conf \ Catalina \ localhost \ ADMIN. XML to the directory
      C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ Catalina \ localhost .

    3. copy the entire directory tree C: \ temp \ apache-Tomcat-5.5.17 \ Server \ webapps \ ADMIN

to the directory C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps . this is an overlay, SO \ Server \ webapps is just pointing you to the \ Server \ webapps, and the Admin directory with its contents will be the only
thing you see added there.

  1. Add a line to yourC: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ tomcat-users.xmlFile so that you have a user who has
    AdminRole. For example, add this line just before the last line (containing
    </Tomcat-users>) Of the file:

    • <User Username = "admin" Password = "makesomethingup" roles = "Admin, Manager"/>

  2. Restart tomcat.
  3. Now when you visitHttp: // localhost: 8080/adminYou shoshould see a page that asks for a user name and password. If you still see the "no longer loaded" error message in your browser,
    You must either force a full reload of the web page (in Firefox, hold down SHIFT key while clicking on the reload button) or just restart your browser completely.

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.