关闭防火墙

vi /etc/selinux/config
i进入编辑模式:
把SELINUX=enforcing修改成SELINUX=disabled。
esc退出编辑模式,:wq退出保存。【需重启】

关闭防火墙
关闭防火墙

  • firewalld防火墙【firewalld是centos7才有】
    systemctl stop firewalld 关闭防火墙
    systemctl disable firewalld 不让其开机启动。 【需重启】

相关文章: