How to install apache with cmd?
First download the apache installation package;
Modify the configuration file The configuration file location is as shown in the figure.
Replace the content in the box in the picture below with the installation location of your choice (note that it is best not to have a Chinese path and no spaces in the path)
Open cmd with administrator rights and enter the bin directory of apache
Install the apache service (remember that the installed service name must be Apache2.4, otherwise cmd opens the apache service An error will be reported)
#Start the service.
Still in the bin directory.
httpd.exe -k start
Whether it is successful
Enter 127.0.0.1/index.html
## in the address bar of the browser
#Notescmd must be started with administrator privilegesIf an error is reported during startup, just find the relevant process and kill itFor more Apache related knowledge, please visitApache usage tutorial column!
The above is the detailed content of How to install apache using cmd. For more information, please follow other related articles on the PHP Chinese website!