如何解决Win10提示“服务器启动失败80端口被占用”的问题

如何解决Win10提示“服务器启动失败80端口被占用”的问题,第1张

很多用户在win10系统电脑中安装软件时,都会遇到提示“80端口被占用,请使用其他端口”,这是怎么回事呢?其实,主要原因是一些系统服务默认的安装端口是80,容易和已安装的ISS等其他服务冲突,导致一些服务项无法启动。下面,小编就介绍下Win10系统80端口被占用的解决方案。<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" /> 步骤如下:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />1、以管理员身份运行cmd;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />2、输入:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />net stop http<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />注:如果提示是否真的需要停止这些服务,则选择“Y”;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />3、完成后输入:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />sc config http start=disabled<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />其他方法:(若80端口不能解除占用,可使用下方解决方案)<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />解决方案一:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />1、Ctrl+x,然后选择“计算机管理”,“服务和应用程序”,找到“服务”;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />2、找到“World Wide Web Publishing Service”,双击打开后,将启动类型改为手动,更改服务状态为“停止”;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />3、如果80端口仍然被占用,则还需要停止以下几个服务:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />“SSDP Discovery”<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />“Print Spooler”<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />“HomeGroup Provider”<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />“Function Discovery Resource Publication”<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />“Function Discovery Provider Host”<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />解决方案二:<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />1、以管理员身份运行regedit ;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />2、打开键值:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP ;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />3、在右边找到Start这一项,将其改为0;<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />4、重启系统,System进程不会占用80端口。<br style="line-height: 8px; color: rgb(110, 110, 110); font-size: 14px; white-space: normal; widows: 1; background-color: rgb(255, 255, 255);" />以上就是关于Win10提示““服务器启动失败,80端口被占用””的两种解决方案。大家在使用win10过程中也遇到类似问题的话,不妨耐心尝试一下小编的方案。 相关阅读: 1、Win10系统皮皮播放器出现闪退怎么办? 2、win10系统怎么禁止计算机远程控制

80端口是为HTTP(HyperText Transport Protocol)即超文本传输协议开放的,此为上网冲浪使用次数最多的协议,主要用于WWW(World Wide Web)即万维网传输信息的协议。搭建网站主要使用的也是80端口,但是当80端口被其他的程序占用时应该怎么办呢?

     在windows下查看80端口占用情况是被哪个进程占用如何终止进程?

这里主要是用到windows下的DOS工具,点击"开始"--"运行",输入"cmd"后点击确定按钮,进入DOS窗口,接下来分别运行以下命令:

netstat -aon | findstr "80"

      然后会出现占用80端口的进程PID

Proto  Local Address              Foreign Address         State           PID

      可以看出80端口被进程号为4306的程序占用

tasklist | findstr "4306"

进程名                     PID    会话名          会话         内存使用

很明显,是httpd占用了80端口;httpdexe是Apache相关程序,是服务器软件中的一个进程,这是属于正常的使用。

不过,并不是只有httpdexe进程会占用80端口,可能有其他的程序也会占用80端口,当你不知道占用端口的进程是干什么用的时,最好先查一下,避免关闭了正常使用的程序造成不必要的麻烦,如果确定是无效或恶意占用的程序就可以执行下面的命令

taskkill /pid 4306 /F

成功: 已终止 PID 为 4306 的进程。

这表示使用上面的命令已将PID为4306的进程终止(这一步同样可以在任务管理器中执行,httpdexe就是任务管理器中的映像名称,选中它,点击"结束进程"即可)

tasklist | findstr "4306"

再次确认是否成功终止,如果成功终止此次执行命令后应返回空

该进程是Httpsys。它是http

API的驱动组件,Http栈服务器。如果该端口被Httpsys占用,说明一些正在使用httpsys的应用程序在运行。这就是阻止Apache运

行的原因,因为Httpsys占用着80端口。我们提供了一种应用程序的机制来帮助控制端口共享,但是我需要调查导致你遇到这种困难的是什么特殊应用程

序。如果你能提供给我们“netsh http show

servicestate”这条命令的输出结果,我就能找出是哪个应用程序在使用Httpsys。在你禁用Httpsys之前,请按照下面的步骤来运

行命令:

1 sc config http stat = demand

2 reboot

3 run the command(netsh http show servicestat)as administrator

在你使用这个命令之前,你可以按照下面步骤禁用httpsys:

1 net stop http

2 Sc config http start= disabled

于是运行net stop http

按y 确定

在运行 Sc config http start= disabled

好了,现在启动Apache,可以启动了。

在查看一下netstat -ano

发现pid 4占用了445端口

转自http://www2ctocom/os/201111/111269html

80被占用一般是在调整Apache服务时,前一个进程没有被杀死会报这个错,或者之前跑着80端口的服务,最好问清楚80端口跑的哪个服务如果是进程没有杀掉重新杀一次即可,如果跑着其他服务则改个端口就行了。关注更多Linux技术《Linux就该这么学》网上免费版可以去看看

你好,您的CPU占满是持续的还是暂时的。 如果新打开一个程序应用,CPU会一下子跑的很高,之后就回复正常占用率的话就没事的。如果是一直被占满,可以打开任务管理器查看一下程序应用,关掉不必要的程序软件,再者就是现在CPU满足不了了,需要更换更高性能的CPU。

cmd命令窗口

输入netstat

-abn

->c:/port80txt

然后到c盘port80txt文件中找到占用80端口的程序pid,记下pid。打开任务管理器,点击“查看”/选择列,勾选“PID(进程标识符)”,然后单击“进程”标签,找到80端口对应的pid,就可以看到是那个程序占用的了,更改这个程序的port,再重启这个程序,使更改生效。再次启动iis。

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » 如何解决Win10提示“服务器启动失败80端口被占用”的问题

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情