Port 80 is being used by SYSTEM (PID 4), w

2019-01-03 11:46发布

I am trying to use port 80 for my application server, but when I perform netstat -aon I get:

TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4

When I look up the process in task manager, it shows PID 4 is SYSTEM, that's it. No extension... nothing. Just "SYSTEM". What's going on here?

I'm afraid to end this process, what do I do?


UPDATE:

I've solved this through another Stack Overflow question, which had the solution to get IIS to stop listening on port 80 for a specified IP address.

28条回答
Explosion°爆炸
2楼-- · 2019-01-03 12:12

There are many services, which can listen port 80 on windows.

Luckily you can detect and stop them all running simple console command:

NET stop HTTP

When you'll start it, you will get list first: enter image description here

To avoid this problem in future go to Local Services and disable listed services.

N.B. - Some services will restart themselves immediately, just run 'NET stop HTTP' few times.

查看更多
该账号已被封号
3楼-- · 2019-01-03 12:12

I just got this problem today, since it showed up after Norton requested reboot I blamed Norton.
But it wasn't Norton, I removed Norton, rebooted -> problem still there.

netstat -nao was showing that PID 4 owned my port 80 connection.

I then went to control panel, then "Turn Windows features on or off" then unchecked Internet Information Services.
Rebooted, the problem went away.
My xampp server is running ok now.

I don't ever remembering turning IIS on in the first place. I had been running many months before this happened. I still don't know what caused it in the first place. Maybe a previous windows updated enabled iis and my reboot turned it on, I don't know.

查看更多
一纸荒年 Trace。
4楼-- · 2019-01-03 12:14

It sounds like IIS is listening to port 80 for HTTP requests.

Try stopping IIS by going into Control Panel/Administrative Tools/Internet Information Services, right-clicking on Default Web Site, and click on the Stop option in the popup menu, and see if the listener on port 80 has cleared.

查看更多
啃猪蹄的小仙女
5楼-- · 2019-01-03 12:14

For me it worked after stopping Web Deployment Agent Service.

查看更多
登录 后发表回答