Apache download and install test error analysis

1. Download

1. Open http://httpd.apache.org/ in a browser

2. Find Download in Apache httpd 2.4.41 Released and click

3. Select Files for Microsoft Windows-> click ApacheHaus-> Apache 2.4 VC15

4. Find Apache 2.4.41 x64 and click Download to complete the download

2. Installation

1. Unzip the downloaded compressed package to the directory you want (I unzip it here to the Apache24 folder in E: \ MyStudy \ MyDownload)

2. Modify the configuration file. Define SRVROOT in /conf/httpd.conf is the installation path

3. Open the cmd console in administrator mode and copy the bin directory path-> enter the command httpd -k install to complete the installation

4. Enter net start Apache2.4 to start the test service

The following error appears:

(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address [::]:443
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

E:\MyStudy\MyDownload\Apache24\Apache24\bin>net start Apache2.4
Apache2.4 服务正在启动 .
Apache2.4 服务无法启动。

发生服务特定错误: 1.

请键入 NET HELPMSG 3547 以获得更多的帮助。

Solution: (1) Enter httpd -k uninstall

Indicates that the Apache service has been removed

(2) Then find the Apache24 \ conf \ extra file, modify the 443 appearing in httpd-ahssl.conf and httpd-ssl.conf to 442 and save it.

Among them, 5 changes are needed in httpd-ahssl.conf 3 changes are needed in httpd-ssl.conf

(3) Then execute the httpd -k install command

(4) Enter net start Apache2.4 again to start the test service

3. Test

Enter localhost: 80 or 127.0.0.1:80 in the browser, you can see the following page, indicating success

Command to turn off the Apache service: net stop Apache2.4 

Published 26 original articles · praised 6 · visits 1402

Guess you like

Origin blog.csdn.net/Sabrina_cc/article/details/104732653