root权限启动apache报错
2014-04-25 22:15
337 查看
修改/etc/httpd/conf/httpd.conf,添加监听端口后,启动报错。
[root@localhost tool]# /etc/init.d/httpd restart
停止 httpd:[确定]
正在启动 httpd:(13)Permission denied: make_sock: could not bind to address [::]:81 //许可被拒绝,不能绑定这个端口
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs但是我已经是root权限了。原来是SELinux的安全问题。
[root@localhost tool]# getenforce
Enforcing //已开启
[root@localhost tool]# setenforce 0 //暂时关掉它
[root@localhost tool]# getenforce
Permissive然后在启动apache。启动成功!!
[root@localhost tool]# /etc/init.d/httpd restart
停止 httpd:[确定]
正在启动 httpd:(13)Permission denied: make_sock: could not bind to address [::]:81 //许可被拒绝,不能绑定这个端口
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs但是我已经是root权限了。原来是SELinux的安全问题。
[root@localhost tool]# getenforce
Enforcing //已开启
[root@localhost tool]# setenforce 0 //暂时关掉它
[root@localhost tool]# getenforce
Permissive然后在启动apache。启动成功!!
相关文章推荐
- wampserver的apache无法启动原因之一
- php安装 配置apache后服务无法启动
- 启动JBoss出现“java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils”解决
- apache启动时httpd: apr_sockaddr_info_get() failed for
- 解决apache启动错误"httpd:Could not reliably determine..."
- Apache作为负载均衡器的一个配置问题导致的无法启动
- Apache Tomcat开机后台启动
- Apache启动命令
- tomcat启动时报:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.20\webapps
- 判断apache是否正常启动
- Apache shutdown unexpectedly启动错误解决方法
- 金山毒霸错杀httpd里面的mod_ssl.so导致apache无法启动
- 10-Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
- Apache2.4 启动闪退
- 搭建apache ftpserver无法启动服务出现DefaultSsl.configure()报错信息
- Apache启动时无法加载php5apache2_2.dll
- ubuntu下关闭apache和mysql的开机启动
- (windows下的)Apache无法启动解决 the requested operation has failed
- 【Apache02】apache服务器的启动和停止以及端口配置
- ubuntu16.04怎么关掉图形界面启动(需要用root权限)