'2019/03/26'에 해당되는 글 1건

[CentOS] 7.x SELINUX 설정 해제



selinux 가 동작을 하고 있으면 보안 설정이 너무 짜증이 납니다.


# vi /etc/selinux/config 수정


#SELINUX=enforcing

SELINUX=disabled


이제 reboot 명령어로 시스템을 재시작 하면 됩니다.



수동으로는 "setenforce 0" 명령어를 실행하면 됩니다.


[root@localhost ~]# getenforce

Enforcing

[root@localhost ~]# setenforce 0

[root@localhost ~]# sestatus

SELinux status:                 enabled

SELinuxfs mount:                /sys/fs/selinux

SELinux root directory:         /etc/selinux

Loaded policy name:             targeted

Current mode:                   permissive

Mode from config file:          disabled

Policy MLS status:              enabled

Policy deny_unknown status:     allowed

Max kernel policy version:      31


설치후 disabled 로 변경하고 재시작을 권합니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,