What if port apache 80 is occupied by iis or another service
- 2020-05-06 12:10:58
- OfStack
iis modifies the method
for port 80
If you want to modify iis without using the 80 method it's easy to find it in our iis manager, iis management and change 80 to 81 to
The Apache method to modify the listener port is
Open the httpd. conf
Revised Listen 80 for L second world release isten 81
Apache can simultaneously listen on more than one port to implement multiple Http services
Just add a line like Listen 82 to
Also, IIS can modify the default port to avoid collisions with
The modification method is similar to
Open Administrative Tools-> Internet Services Manager
Click Default Web Site(or other custom Site) -> Right-click to select Properties
Click Web Site-> Advanced...
Modify TCP Port to be valid for
If port 80 is not occupied by the above two programs, we can refer to the following method to find which service is occupied by port 80
Suppose we need to determine who is using port 80
1. Windows platform
In the windows command line window, the second world collation release is executed:
C: > netstat -aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
See, the port is occupied by a process number 2448. Continue with
C: > tasklist|findstr "2448"
thread.exe 2016 Console 0 16,064 K
Clearly, thread is using your port,Kill it
If the second step fails, open the task manager, see which process is 2448, and then kill it.
If you need to look at other ports. You can change 80 to
Supplement: The original reason for this error (httpd.exe: Could not reliably determine s fully fully qualified domain domain fully domain domain domain domain domain domain domain domain ServerName, using 192.168.1.111 for ServerName) because DNS is not properly configured. Add ServerName localhost:80 first to
for port 80
If you want to modify iis without using the 80 method it's easy to find it in our iis manager, iis management and change 80 to 81 to
The Apache method to modify the listener port is
Open the httpd. conf
Revised Listen 80 for L second world release isten 81
Apache can simultaneously listen on more than one port to implement multiple Http services
Just add a line like Listen 82 to
Also, IIS can modify the default port to avoid collisions with
The modification method is similar to
Open Administrative Tools-> Internet Services Manager
Click Default Web Site(or other custom Site) -> Right-click to select Properties
Click Web Site-> Advanced...
Modify TCP Port to be valid for
If port 80 is not occupied by the above two programs, we can refer to the following method to find which service is occupied by port 80
Suppose we need to determine who is using port 80
1. Windows platform
In the windows command line window, the second world collation release is executed:
C: > netstat -aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
See, the port is occupied by a process number 2448. Continue with
C: > tasklist|findstr "2448"
thread.exe 2016 Console 0 16,064 K
Clearly, thread is using your port,Kill it
If the second step fails, open the task manager, see which process is 2448, and then kill it.
If you need to look at other ports. You can change 80 to
Supplement: The original reason for this error (httpd.exe: Could not reliably determine s fully fully qualified domain domain fully domain domain domain domain domain domain domain domain ServerName, using 192.168.1.111 for ServerName) because DNS is not properly configured. Add ServerName localhost:80 first to