(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.