Permanently turn off the linux firewall

1. Close firewalld

1.临时关闭
systemctl stop firewalld 
2.永久关闭
systemctl disable firewalld

2. Close seliunx

vim /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled #将enforcing改成disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Guess you like

Origin blog.csdn.net/weixin_46627652/article/details/131606538