httpd将无法启动,并没有错误

当我运行时,httpd不会启动: service httpd startservice httpd restart

除了红色的[FAILED]位之外,我没有错误。

/var/log/httpd/error_log为空。

/var/log/message下面有一行:

 Nov 15 13:23:06 localhost kernel: audit(1384521786.787:32): avc: denied { name_bind } for pid=31935 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket 

任何想法,为什么它不会启动或任何解决scheme?

看着这个: Apache不会启动,但显示没有错误

尽pipe这是最后一个选项,但我还没有重启系统。

谢谢

 [root@localhost ~]# httpd -v Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:00 [root@localhost ~]# service httpd status httpd is stopped 

来自/var/log/message看起来像是SELinux。

请尝试: getenforce ,它会报告SELinux是强制执行,允许还是禁用。

如果是强制执行, setenforce 0看看是否是什么导致的问题。

如果真的是SELinux,你应该设置适当的设置并重新激活它;-)同时使用setenforce 0关闭SELinux setenforce 0 ,只能持续到下一次重启! 通过在/etc/selinux/config中将SELINUX=enforcing更改为SELINUX=permissive来永久关闭它。


我的第二个猜测是iptables / firewalld阻止httpd的端口。