Sysops Notepad

[Linux] CentOS SELinux 비활성화 본문

업무/sys

[Linux] CentOS SELinux 비활성화

sysops 2021. 11. 15. 00:30

설치 환경 

- CentOS 8

- CentOS 7

- CentOS 6

 

1.  SELinux 설정 확인

[root@sysops]# sestatus
[root@sysops]# sestatus | grep 'SELinux status\|Current mode'
SELinux status:                 enabled
Current mode:                   enforcing

 

2. 일시적으로 비활성화시키기

[root@sysops]# setenforce 0
[root@sysops]# sestatus | grep 'SELinux status\|Current mode'
SELinux status:                 enabled
Current mode:                   permissive

 

3. 영구적으로 비활성화시키기

[root@sysops]# vim /etc/selinux/config
...
SELINUX=disabled   #수정
[root@sysops]# reboot
[root@sysops]# sestatus
SELinux status:                 disabled

 

'업무 > sys' 카테고리의 다른 글

[Linux] 자산 관리 오픈소스 Snipe-IT 설치하기  (0) 2021.11.15
[Linux] MongoDB 4.x 설치  (0) 2021.11.15
[LINUX] disk io 상태 확인하기  (0) 2021.11.09
[LINUX] ifconfig 항목 설명  (0) 2021.11.09
Alma linux 8.x 설치  (1) 2021.08.23
Comments