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条回答
三岁会撩人
2楼-- · 2019-01-03 11:47

WORKING SOLUTION TESTED:(WINDOWS 10)

There are many reasona for this, the one cause/solution i recommended is this:

OPEN YOUR WINDOW COMMAND WITH ADMINISTRATOR PREVILEGE THEN:

net stop http /y

the above will agree to stop http service then:

sc config http start= disabled

the above will configure service to disable by default

IF ABOVE SOLUTION DOES NOT WORK FIND YOUR SPECIFIC CASE HERE:

SOURCE: http://www.devside.net/wamp-server/opening-up-port-80-for-apache-to-use-on-windows

RESTART YOUR WEB SERVER/XAMPP/APACHE AND DONE.


If you ever need to re-enable to default here is the command sc config HTTP start= demand the source of explanation is here http://servicedefaults.com/10/http/

查看更多
不美不萌又怎样
3楼-- · 2019-01-03 11:49

This wouldn't explain the PID side of things, but if you run Skype, it likes to use Port 80 for some reason.

查看更多
看我几分像从前
4楼-- · 2019-01-03 11:50

The issue is how to free it up, simply use

net stop http

https://stackoverflow.com/a/16243333/777982

查看更多
何必那么认真
5楼-- · 2019-01-03 11:50

An other service that could occupied the port 80 is BranchCache

services.msc showing it as "BranchCache"

or use the net command to stop the service like

net stop PeerDistSvc

Update:

PeerDistSvc is a service behind svhost.exe, to view svhost services type

tasklist /svc /fi "imagename eq svchost.exe"

查看更多
Ridiculous、
6楼-- · 2019-01-03 11:51

A new service called "Web Deployment Agent Service" (MsDepSvc) can also trigger "System" with PID=4 to listen on port 80.

查看更多
ら.Afraid
7楼-- · 2019-01-03 11:54

the IP adress is 0.0.0.0, state = LISTENING: means that port 80 is listening to all interfaces (not used)

How to read NETSTAT -AN results:

查看更多
登录 后发表回答