systemctl status firewalld.service #查看防火墙状态 systemctl disable firewalld.service #禁止使用防火墙 正式服务器建议启用防火墙,设置允许的端口;
6、关闭selinxu
1 2 3 4 5 6 7 8 9 10 11 12 13 14
vi /etc/selinux/config #编辑文件内容如下
# 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 #此处修改为disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted