Configuration of Tomcat 7.0

Source: Internet
Author: User

First, install JDK 1.7

1 , add environment variables: in My Computer - Properties - Advanced - Environment Variables

2 , new system variable, variable name: Java_home Variable Value: C:\Program files\java\jdk1.7.0 (JDK installation directory )

3 , in the original system variables Path Add the English semicolon followed by the %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\jre\bin; do not delete the original. See clearly, the semicolon between them, is the semicolon in English.

4 , restart the computer (because the system variable is added, if your system is Win7 , you do not need to restart).

4 , Test JDK If the installation is successful, run ->cmd->d: Enter D disk, Input Javac See if you can come out with a lot of commands . JDK The configuration was successful.

Second, the installation configuration of Tomcat 7.0

1 , Tomcat 7.0 Install-free version of the configuration ( If you extract Tomcat to the C:\Program Files directory, the directory structure is:C : \program Files\apache-tomcat-7.0.11

1 , add environment variables: in My Computer - Properties - Advanced - Environment Variables

2 , new system variable, variable name: Catalina_home Variable Value: C:\Program files\apache-tomcat-7.0.11 (Tomcat extracted to the directory ) .

3 , in System variables Path the last side of the add %catalina_home%\lib;%catalina_home%\lib\servlet-api.jar;%catalina_home%\lib\jsp-api.jar Notice the semicolon between them, which must be a semicolon in English.

4 , Tomcat 7.0 The administrator's configuration, enter C:\Program files\apache-tomcat-7.0.11 ( Tomcat directory) under the conf catalogs, editing Tomcat-users.xml , find the final:

<!--
<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"/>
-

In the above paragraph , add the following :

<role rolename= "Manager-gui"/>
<role rolename= "Admin-gui"/>
<user username= "admin" password= "admin888" roles= "Admin-gui"/>
<user username= "Tomcat" password= "Tomcat" roles= "Manager-gui"/>

Red is the added part. to this we should know the username and password of the administrator we added is the number of it!

5 , enter Tomcat under the directory bin directory, double-click Startup.bat Start Tomcat the command Line window will come out in English prompt.

6 , Browser input: http://localhost:8080 You can see the Tomcat Welcome page to indicate that the configuration was successful, click on the manager connection in the upper right corner , Enter the user name and password configured above to access the Administration page.

Configuration of Tomcat 7.0

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.