码迷,mamicode.com
首页 > Web开发 > 详细

apache 80端口占用问题

时间:2018-03-14 23:42:45      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:service   通过   tst   pos   bin   命令   next   必须   god   

今天安装mongodb后发现apache无法启动

命令行 services.msc 打开服务

在服务里启动Apache2a服务,报错误码1

网上查有很多情况都报的1

可以通过命令行下  执行apache bin 下的 httpd.exe进一步了解

AH00548: NameVirtualHost has no effect and will be removed in the next release D:/phpStudy/Apache/conf/extra/httpd-vhosts.conf:34
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

看到这里估计是80端口被占用了,我之前也有一次遇到过80被System占用,后来通过修改httpd.conf里的监听端口解决

通过命令行 netstat -ano|findstr 80 查看占用的pid  为4

通过tasklist 显示所有进程 

System                           4 Services                   0        108 K

果然还是System占用,这次必须解决,通过查看资料了解到System一般为SQL Server Reporting Services (MSSQLSERVER)这个服务

直接去服务里禁用它,apache成功开启 

 

apache 80端口占用问题

标签:service   通过   tst   pos   bin   命令   next   必须   god   

原文地址:https://www.cnblogs.com/xueTP/p/8570678.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!