Mục tiêu thực hành:
- Kiểm tra trạng thái hiện tại của SELinux.
- Tiến hành Disable SELinux.
- Tiến hành khởi động lại CentOS 7.
Các bước triển khai:
Kiểm tra trạng thái hiện tại của SELinux.
[root@localhost ~]# sestatusSELinux status: enabledSELinuxfs mount: /sys/fs/selinuxSELinux root directory: /etc/selinuxLoaded policy name: targetedCurrent mode: enforcingMode from config file: enforcingPolicy MLS status: enabledPolicy deny_unknown status: allowedMax kernel policy version: 28[root@localhost ~]#
Tiến hành Disable SELinux.
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
Tiến hành khởi động lại CentOS 7.
[root@localhost ~]# sestatusSELinux status: enabledSELinuxfs mount: /sys/fs/selinuxSELinux root directory: /etc/selinuxLoaded policy name: targetedCurrent mode: enforcingMode from config file: disabledPolicy MLS status: enabledPolicy deny_unknown status: allowedMax kernel policy version: 28[root@localhost ~]#
[root@localhost ~]# reboot[root@localhost ~]# sestatusSELinux status: disabled[root@localhost ~]#
Mọi thắc mắc, các bạn vui lòng liên hệ với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments