1. Close the firewall: iptables -F
2. Close selinux:
temporarily close:
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
Permanent shutdown (the system may be stuck with a white bar and cannot be started after the system is shut down):
View the current SELinux status:
/usr/bin/setstatus -v
Edit /etc/selinux/config, find the SELINUX line and change it to: SELINUX=disabled:
原:SELINUXTYPE=targeted
改:SELINUX=disabled:
Just restart the system.
Reference: https://www.cnblogs.com/chunshu/p/6219499.html
https://blog.csdn.net/xin_y/article/details/79007986