centos서버를 구축할때는 SELinux를 비활성화 해줘야하는데요
SELinux를 왜 비활성화 해야하나?
SELinux은 각종 기능들이 차단하기 때문에 활성화 되어있으면 오류가 발생할 수 있기 때문이죠 그래서 서버를 운영할때는 비활성화 하는게 좋습니다.
먼저 터미널을 열어줍니다.
입력하시면
# 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 # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted |
가 나올겁니다. 여기서 SELINUX=enforcing를 SELINUX=disabled 으로 변경해줍니다 그리고 재부팅 해주면 완료됩니다!
