This topic describes how to disable the firewall and SELinux. If you are an individual user, you can skip this topic. If you are an enterprise user, we recommend that you disable the firewall and SELinux.
Note
You must perform this operation on each server.
Disable the firewall
Run the following commands in sequence to disable the firewall:
[admin@test001 ~]$ sudo systemctl disable firewalld
[admin@test001 ~]$ sudo systemctl stop firewalld
[admin@test001 ~]$ sudo systemctl status firewalld
Disable SELinux
Run the following command to open the /etc/selinux/config configuration file:
[admin@test001 ~]$ sudo vim /etc/selinux/config
Change the corresponding configuration in the /etc/selinux/config file to the following:
SELINUX=disabled
Run the following command or restart the server for the change to take effect:
[admin@test001 ~]$ setenforce 0
Run the following command to check whether the change has taken effect:
sestatus