Solve the problem that computer port 80 is occupied by System

1. Description of problem phenomenon

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:Insert image description here

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.

Insert image description here

2. Solution/steps

1. Run cmd as administrator

2. Run net stop http

Insert image description here

3. Press y to confirm

Insert image description here

4. Run Sc config http start= disabled

Insert image description here

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.

Insert image description here

6. Start our project again.

Guess you like

Origin blog.csdn.net/qq_33278354/article/details/113847068