当前位置: 移动技术网 > 科技>操作系统>windows > apache 80端口占用问题

apache 80端口占用问题

2018年03月15日  | 移动技术网科技  | 我要评论

正月无初一打一字,101次求婚高清,k82

今天安装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成功开启 

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网