码迷,mamicode.com
首页 > 其他好文 > 详细

启动httpd报错-已解决

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

标签:http   os   io   strong   for   ar   art   cti   

[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   os   io   strong   for   ar   art   cti   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!