Home > Article > Operation and Maintenance > How to download and install apache
1. Log in to the official website: http://httpd.apache.org/download.cgi
2. As shown below
3. Download the installation package and extract it to the specified directory. You can specify the directory (E:\web\Apache24) according to your own requirements. The web folder can be named according to your own needs.
4. Go to the E:\web\Apache24/conf folder and open the httpd.conf file, as shown below:
Change to the Apache file Unzip the installation path (E:\web\Apache24).
5. Open the command line and enter netstat -a in the command line to check whether port 80 is occupied. If it is occupied, open the httpd.conf file and find the following picture:
Change port 80 to a port that is not occupied (for example: 8088) and save it.
5 Enter the E:/web/Apache24/bin directory through the command line, and then execute the httpd -k install command to install
and then install it on the command line Enter httpd - k start command to start the service
6 Enter loaclhost:8088 in the browser and press Enter. As shown in the figure
7 below, stop the service and enter httpd -k stop in the command line
For more Apache related knowledge, please visitApache usage Tutorial column!
The above is the detailed content of How to download and install apache. For more information, please follow other related articles on the PHP Chinese website!