1. When deploying a java project or other projects, port 80 is occupied during startup.
2. Use netstat to check the port and find that port 80 is occupied by a process with PID 4:
3. Open the task manager, right-click on the header, and check PID. You will find that the process with PID 4 is a SYSTEM process, described as NT Kernel & System. Try to end this process using the right-click menu of the mouse, and find that the end task button is gray and unavailable. , or the process cannot be ended.
2. Solution/steps
1. Run cmd as administrator
2. Run net stop http
3. Press y to confirm
4. Run Sc config http start= disabled
5. Check netstat –ano again and find that the port occupied by the process of pid 4 has changed from port 80 to port 445.