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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了http启动时提示如下错误Permission denied相关的知识,希望对你有一定的参考价值。


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

[[email protected] 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状态

[[email protected] conf]# getenforce 

Enforcing(开启)


执行关闭selinux:setenforce 0

[[email protected] conf]# setenforce 0

[[email protected] conf]# getenforce 

Permissive


然后再启动就OK了

[[email protected] 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的主要内容,如果未能解决你的问题,请参考以下文章

启动ssh服务时提示 Starting sshd:Couldn't open /dev/null :Permission denied

docker启动容器报permission denied错误处理

CloudKit提示Permission Failure:Invalid bundle ID for container 错误的超详细解决

CloudKit提示Permission Failure:Invalid bundle ID for container 错误的超详细解决

Mac npm install时提示git@github.com:Permission denied (publickey)

虚拟机中Ubuntu启动pycharm时提示./pycharm.sh: /usr/local/java/jdk1.8.0_05: Permission deni