Apache installation problems encountered stepped pit

A, (OS 10048) each socket address (protocol / network address / port) only once

Here Insert Picture Description

method one:

View port occupancy | (findstr "port number" netstat -aon), shut down the process PID call the relevant port through netstat -a -o.
Close Method: taskkill / pid number / f
restart Apache can.

Method Two:

Processed by modifying conf / httpd.conf corresponding listening port.
Open the Apache configuration file under the Apache installation directory conf / httpd.conf

Listen 80 to 80 to find a different port number, such as (8088)
Here Insert Picture Description
ServerName localhost: a different port number (8088)
Here Insert Picture Description
to restart Apache access http: // localhost: 8088

Two, Apache24 of common dos operation command

1, the apache24 installed to system services: httpd -k install
2, start the service apcache24 services: httpd -k star
3, stop the service apcache24 services: httpd -k stop
4, restart the service apcache24 services: httpd -k restart
5, uninstall apcache24 services: httpd -k uninstall
6, the test apache24 configuration syntax: httpd -t
7, the version information: httpd -V
8, see cmd command: httpd -h

Third, the reason Window local localhost replaced after the local IP address can not be accessed

1, first check the apache service is turned on, if not open right turn

Here Insert Picture Description

2, adding bin / httpd.exe within the range permitted by the firewall

Click Change Settings
Here Insert Picture Description
Click sequential httpd.exe other applications will add to it
Here Insert Picture Description
Here Insert Picture Description
the ultimate success and added private and public check boxes are selected
Here Insert Picture Description

Fourth, if you are here with a web server is IIS, also need to check the Web Management Service (HTTP)

We must first understand the local DNS domain name is localhost 127.0.0.1 resolution; and IP Local IP refers to your IP address connected to the network, the network address may be, of course, may also be a public network IP;. 1 local server IIS server is a need in the program - open and close windows firewall check web Http protocol - function;

Here Insert Picture Description

Fifth, if not enough will open a firewall port you set (I use the above-mentioned 8088)

Open the firewall
Here Insert Picture Description
to open the Advanced Settings
Here Insert Picture Description

Click Inbound Rules New rule and
Here Insert Picture Description
choose the next port and
Here Insert Picture Description
enter your designated port and the next stepHere Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description
After completing discovered open port
Here Insert Picture Description

Six, if Ali cloud server to open ports

Systems Window Server 2012 R2

Click on the cloud server
Here Insert Picture Description

Click Security Group Configuration
Here Insert Picture Description
Click the Configure rules

Here Insert Picture Description
Click to add the security group rules
Here Insert Picture Description
in the following figure you can configure your port number
Here Insert Picture Description

Seven, if you change the location of the Apache, you can not open the file location services you will also need to get rid of

WinR ----> enter regedit

Find the following
Here Insert Picture Description
Here Insert Picture Description

Double-click ImagePath to change the location in which to file
Here Insert Picture Description

Published 62 original articles · won praise 5 · Views 3930

Guess you like

Origin blog.csdn.net/qq_42194657/article/details/102963252