Recently, When IIS was started, it always reported "another program is using this file and the process cannot be accessed" error. I checked it online because the default port 80 of IIS is occupied, what programs occupy 80 ports?
Enter cmd, enter netstat-ano, and you will be able to clearly see the PID of the program occupied by the local port 80, and then check the process corresponding to the PID in the Task Manager (if the task manager does not have a PID, check-> select columns). It turns out that thunder 5 is occupied, and then go to thunder to check the settings. The default TCP transmission port of Bt is 80, IIS is started properly...
**
Statement: Although apachecan run, it can be seen that httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.1.111 for servername is incorrect in error.log. check whether other port 80 is occupied.
Start -- run -- cmd enter the command prompt and enter netstat-ano. Then you can see all connected PIDs and find the program corresponding to the PID in the task manager. If no PID exists in the task manager, you can select "View"-"Select column" in the task manager"
Often, when we start an application, we find that the ports required by the system are occupied by other programs. How do we know who owns the ports we need, next we will introduce a very simple method and hope it will be useful to you.
If we need to determine who is using port 80
1. Windows Platform
Run the following command in the Windows command line window:
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.