Turn off firewall
systemctl stop firewalld
Disable firewall self-start after boot
systemctl disable firewalld
Set to temporarily close selinux
setenforce 0
Set to permanently close selinux
vim /etc/sysconfig/selinux
Modify the content of line 7 as follows,
you can also use the sed command to modify
sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
After modifications are complete using the reboot
command to restart the server