首页 > 其他 > 详细

启动httpd报错-已解决

时间:2014-08-16 00:58:39      阅读:403      评论:0      收藏:0      [点我收藏+]

[root@localhost ~]# service httpd start
Starting httpd: (13)Permission denied: make_sock: could not bind to address 192.168.1.153:28080
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@localhost ~]#

 

临时办法:

[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# service httpd start
Starting httpd: [ OK ]
[root@localhost ~]#

 

永久办法:

[root@localhost ~]# vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

启动httpd报错-已解决,布布扣,bubuko.com

启动httpd报错-已解决

原文:http://www.cnblogs.com/armyknife/p/3915899.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!