Home > Operation and Maintenance > Apache > How to install apache using cmd

How to install apache using cmd

藏色散人
Release: 2019-10-10 17:08:53
Original
3078 people have browsed it

How to install apache using cmd

How to install apache with cmd?

First download the apache installation package;

How to install apache using cmd

Modify the configuration file The configuration file location is as shown in the figure.

How to install apache using cmd

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)

How to install apache using cmd

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)

How to install apache using cmd

#Start the service.

Still in the bin directory.

httpd.exe -k start
Copy after login

How to install apache using cmd

Whether it is successful

Enter 127.0.0.1/index.html

How to install apache using cmd## in the address bar of the browser

#Notes

cmd must be started with administrator privileges

If an error is reported during startup, just find the relevant process and kill it

For more Apache related knowledge, please visit

Apache 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template