How to modify port 80 in iis
If you want to modify iis to avoid using 80, you can find it in our iis manager, manage iis, and change 80 to 81.
Apache modifies the listening port as follows:
Open httpd. conf
Modify Listen 80 to L Second World Organization release isten 81
Apache can monitor more than one port at a time to implement multiple Http Services.
Just add a line like Listen 82.
Similarly, IIS can modify the default port to avoid conflict.
The modification method is similar
Open Administrative Tools> Internet Services Manager
Click Default Web Site (or another custom Site)-> right-click and select Properties
Click Web Site-> Advanced...
Modify the TCP Port to a valid value.
If port 80 is not occupied by the above two programs, we can refer to the following method to find out which service is occupied by port 80
If we need to determine who is using port 80
1. Windows Platform
In the windows command line window, organize the Second World and run the command:
C:> netstat-aon | findstr "80"
TCP 127.0.0.1: 80 0.0.0.0: 0 LISTENING 2448
As you can see, the port is occupied by a process with the process number 2448. Continue to execute the following command:
C:> tasklist | findstr "2448"
Thread.exe 2016 Console 0 16,064 K
Well, thread occupies your port and Kill it.
If you cannot find the process in step 2, open the task manager, check which process is 2448, and then kill it.
If you want to view other ports. Change 80.
Supplement: the original cause is: httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName. if you do not want to configure DNS, go to httpd. conf, add ServerName localhost: 80 at the beginning.