ApacheTomcat Server Configuration

Source: Internet
Author: User
Article Title: apacheTomcat server configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1. Download Software

2. install Tomcat

3. Set the environment variable atat_home
Variable name: TOMCAT_HOME variable value: D: \ Apache Software Foundation \ Tomcat 5.5

4. Create a folder under D: \ Apache Software Foundation \ Tomcat 5.5 \ conf:
Connector
Copy isapi_redirector2.dll to D: \ Apache Software Foundation \ Tomcat 5.5 \ conf \ connector.
(See attachment)

5. Create the workers2.properties file under D: \ Apache Software Foundation \ Tomcat 5.0.7 \ conf.

6. Create jk2.properties under D: \ Apache Software Foundation \ Tomcat 5.5 \ conf (directly use jk2.properties in my attachment ).

7. import the Registry File isapi_redirect.2.0.reg (double-click the file and click OK) before importing the file, modify the Registry file and set "D: \ Apache Software Foundation \ Tomcat 5.5 "is replaced with your tomcat installation path.

8. choose "start"> "Settings"> "Control Panel"> "Administrative Tools"> "Internet Service Manager" and find your site (my computer name is gaofei and "Default Web site "). Right-click and choose "property"> "ISAPI filter"> "add"> Filter Name: jakarta. Executable File: D: \ Apache Software Foundation \ Tomcat 5.5 \ conf \ connector \ isapi_redirector2.dll. Click "OK" to save.

9. next, right-click "Default Web site" and choose "New"> "virtual directory"> "Next"> "alias", and click "jakarta". Then, click "Next"> "directory" and select "D: \ Apache Software Foundation \ Tomcat 5.5 \ conf \ connector, click Next> "execute (for example, ISAPI application or CGI)" to check, click next, and then click "finish ".

10. Restart "Default Web site ". Right-click "Default Web site" and choose "properties"> "ISAPI filter". If the arrow in front of "jakarta" is green, the configuration is successful.

========================================================== ========================================================== =
10. Set the environment variable atat_home.
Desktop, "My Computer"-> right-click-> "properties"-> "advanced"-> "environment variable"-> "system variable"-> "new"-> variable name: JAVA_HOME, variable value: D: \ JBuilder8 \ jdk1.4. Click "OK" to save.

11. run the tools in the Directory D: \ JBuilder8 \ jdk1.4 \ lib. jar is copied to the tomcat common \ lib directory (C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0.7 \ common \ lib \) and Tomcat is restarted, restart IIS.

12. Open it nowHttp: // localhost/index. jsp(Note: NoHttp: // localhost/), You can see the tomcat page.
But have you seen it ??? The image is not displayed normally. Modify it later.

13. choose "start"> "Settings"> "Control Panel"> "Administrative Tools"> "Internet Service Manager" and find your site (my computer name is lnboy and "Default Web site "). Right-click "properties"-> "document"-> documents, enter "“index.jsp”, confirm, and then click" “index.html ", and then click" OK "(because this is the default start page of tomcat ). Go to "main directory" and "local path", and select "C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0.7 \ webapps \ ROOT ".

14. Restart IIS.Http: // localhost/, Compare, and openHttp: // localhost: 8080/Right ??? Success !!!
Don't be busy. Open it.Http: // localhost/jsp-examples/Check whether it cannot be opened. Why ??? In this case, you also need to create a virtual directory jsp-examples in IIS. The local path is C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0.7 \ webapps \ jsp-examples(see index.html under the folder below, you know why you want to add "index.html" in front of it ???).

15. Restart IIS to enableHttp: // localhost/jsp-examples/jsp2/simpletag/hello. jspRight ???

PS: uploaded attachments, including workers2.properties, jk2.properties, isapi_redirector2.dll, and isapi_redirect.2.0.reg.

Attachment inHttp://www.delphibbs.com/keylife/images/u88173/tomcatconf.rar

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.