混合云灾备-环境准备:关闭SELinux
时间:2025-02-12 14:52:05
关闭SELinux
- 修改工作机,同步机和灾备机节点的SELinux权限,英方i2nas要求需要关闭SELinux,否则无法进行同步。
以root权限登录,修改“/etc/selinux/config”文件,修改为SELINUX=disabled
示例如下:
# 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 - SELinux is fully disabled.SELINUX=disabled# SELINUXTYPE= type of policy in use. Possible values are:# targeted - Only targeted network daemons are protected.# strict - Full SELinux protection.SELINUXTYPE=targeted
- 重启主机检查SELinux状态
[root@localhost ~]# getenforceDisabled
support.huaweicloud.com/bestpractice-hcdr/hcdr_02_0102.html