[[email protected] ~]# 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]
[[email protected] ~]#
临时办法:
[[email protected] ~]# getenforce
Enforcing
[[email protected] ~]# setenforce 0
[[email protected] ~]# service httpd start
Starting httpd: [ OK ]
[[email protected] ~]#
永久办法:
[[email protected] ~]# 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