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. Program All are placed under D: \ hzq, so I
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. Set apachemodulejserv. copy the DLL file to the $ apache_root \ modules directory.
2. Modify $ apache_root \ conf \ httpd. conf:
Add loadmodule jserv_module modules/apachemodulejserv to the file. DLL to
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.