A, (OS 10048) each socket address (protocol / network address / port) only once
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)
ServerName localhost: a different port number (8088)
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
2, adding bin / httpd.exe within the range permitted by the firewall
Click Change Settings
Click sequential httpd.exe other applications will add to it
the ultimate success and added private and public check boxes are selected
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;
Fifth, if not enough will open a firewall port you set (I use the above-mentioned 8088)
Open the firewall
to open the Advanced Settings
Click Inbound Rules New rule and
choose the next port and
enter your designated port and the next step
After completing discovered open port
Six, if Ali cloud server to open ports
Systems Window Server 2012 R2
Click on the cloud server
Click Security Group Configuration
Click the Configure rules
Click to add the security group rules
in the following figure you can configure your port number
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
Double-click ImagePath to change the location in which to file