http启动时提示如下错误Permission denied
apache配置了多端口,启动时提示如下错误,原因是selinux开启导致# /etc/init.d/httpd start
Starting httpd: 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
解决方法:
查看selinux状态
# getenforce
Enforcing(开启)
执行关闭selinux:setenforce 0
# setenforce 0
# getenforce
Permissive
然后再启动就OK了
# /etc/init.d/httpd start
Starting httpd: NameVirtualHost *:80 has no VirtualHosts
页:
[1]