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

http启动时提示如下错误Permission denied

时间:2016-12-20 21:20:47      阅读:912      评论:0      收藏:0      [点我收藏+]

标签:apache开启多端口权限影响错误   解决   


apache配置了多端口,启动时提示如下错误,原因是selinux开启导致

[root@zabbix-server-155 conf]# /etc/init.d/httpd start

Starting httpd: [Tue Dec 20 11:34:44 2016] [warn] NameVirtualHost *:80 has no VirtualHosts

(13)Permission denied: make_sock: could not bind to address [::]:8001

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8001

no listening sockets available, shutting down

Unable to open logs

                                                           [FAILED]


解决方法:

查看selinux状态

[root@zabbix-server-155 conf]# getenforce 

Enforcing(开启)


执行关闭selinux:setenforce 0

[root@zabbix-server-155 conf]# setenforce 0

[root@zabbix-server-155 conf]# getenforce 

Permissive


然后再启动就OK了

[root@zabbix-server-155 conf]# /etc/init.d/httpd start

Starting httpd: [Tue Dec 20 11:36:02 2016] [warn] NameVirtualHost *:80 has no VirtualHosts

                                                           [  OK  ]


本文出自 “11002498” 博客,请务必保留此出处http://11012498.blog.51cto.com/11002498/1884358

http启动时提示如下错误Permission denied

标签:apache开启多端口权限影响错误   解决   

原文地址:http://11012498.blog.51cto.com/11002498/1884358

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