Today, when running a very slow server, the error port 80 is occupied, so various ways to find solutions. Finally, my solution is listed, for people who encounter the same problem to do some reference.
The first step is to find out which program occupies the port
Run->cmd open DOS window
| findstr 80
Then, find this line
TCP 0.0.0.0:80 0.0.0.0 LISTENING 4744
The last 4744 is the PID that occupies this port, and then find the PID program
tasklist | Findstr 4744
Then, you can see
Java.exe 4744 Console 1 58660K
We can kill this process right away.
4744 -F
Note that if the 80 port is system, do not kill it randomly, that is the key process. This is a complicated situation, and some system service may be used (shown as systems), and I am in a situation where a service takes up 80 ports.
运行->service打开service
Pull to the end, there's a
World Wide Web Publishing Service
Turn off the service and my problem will be solved.
As a reference only, it cannot be applied in all cases.
Workaround for Windows Port 80 is occupied