This topic describes how to disable the firewall and SELinux. If you are in a personal trial scenario, you can skip this step. If you are using it in a production environment, we recommend that you refer to this topic to 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
Modify the corresponding parameter in the /etc/selinux/config configuration file to the following content:
SELINUX=disabled
Run the following command or restart the server for the changes to take effect:
[admin@test001 ~]$ setenforce 0
Run the following command to check whether the changes have taken effect:
sestatus
