# 关闭SELinux

为简化部署过程和提高部署效率，请在所有节点关闭SELinux。

- 临时关闭SELinux。

```
setenforce 0
```


- 永久关闭SELinux。
  永久关闭SELinux的方法需要重启服务器才能生效。

```
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
```
