Apache + Servlet + Jsp environment settings (medium)

Source: Internet
Author: User

(2) Apache Server

1. Double-click the apache_1_3_12_win32.exe file and use the default configuration for installation. The default installation directory is:
C: \ Program Files \ Apache Group \ Apache, I use $ APACHE_ROOT to replace the installation destination;
2. Modify $ APACHE_ROOT \ conf \ httpd. conf:
1) PORT
Set the port number used for running Apache Web Server.
Port 80 is used, so I changed it to Port 8080 and enter it in the browser later.
Http: // localhost: 8080/to access the Apache Web Server. Enter
Http: // localhost/can access IIS, so that both Web servers can be used.
$ APACHE_PORT ID;
2) DocumentRoot
Set the document root directory. When you enter http: // localhost: $ APACHE_PORT/in your browser
The server reads data from the root directory of the document. Because my programs are all stored in D: \ HZQ
DocumentRoot is set to D:/HZQ;
3. After installing Apache, add an Apache Web Server menu group in the "Start-> program" menu group and run
Install Apache as a service. In this case, choose Start> Settings> Control Panel> service.
An additional service named Apache can be used to start or stop the Apache service;
4. Open "start-> Settings-> Control Panel-> service", select Apache, and press "start" to start Apache.
Service;
5. Input http: // localhost: $ APACHE_PORT/in the browser to view all the files under D: \ HZQ,
This indicates that the Apache service has been installed successfully.

(3) Apache JServ

1. Copy the ApacheModuleJServ. dll file to the $ APACHE_ROOT \ modules directory;
2. Modify $ APACHE_ROOT \ conf \ httpd. conf:
Add LoadModule jserv_module modules/ApacheModuleJServ. dll
Start Apache JServ;
3. Restart the Apache service.

Related Article

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.