Solution to port 80 being occupied by System & PID = 4 in Windows
I am using SQL Server Reporting Services. Stop this service and set it to manual start.
If you have not installed SQL Server, refer to the following solution
========================================================== ========================================================
Suddenly, port 80 was inexplicably occupied.
This product cannot be completed, so I started to check what was occupied.
First, open cmd and run the command. Port 80 is occupied by System. It must be a ghost of the HTTP service.
Netsh http show servicestate
I was slightly confused when I saw REPORTSERVER.
Let's continue to look at the PID using port 80. What are you waiting? Start taskmgr! (Task Manager)
How to view the PID in Task Manager:
In the cmd above, we get PID = 4212. Now let's see what is playing tricks.
The result was suddenly enlightened! If you are not sure what the process is, right-click it and choose "open file location ".
Now everyone should understand it. I am using the SQL Server Report service.
Finally, I went to services. msc to stop him and set this service to be done manually.
How to view the current usage of port 80:
Netstat-ano | findstr 0.0.0.0: 80
Enter this command and press Enter. If there is no content in the middle, it indicates no occupation.