linux 防火墙查看

    xiaoxiao2021-03-25  83

    vsftpd服务器不能用了,觉得是防火墙的原因。记录下

    Centos7中防火墙变为了firewall

    1 查看防火墙状态

    [root@centos01 ~]# firewall-cmd --state

    running

    2 果然是运行的,于是就想disabled防火墙服务

    [root@centos01 ~]# systemctl mask firewalld

    ln -s '/dev/null' '/etc/systemd/system/firewalld.service'

    3 然后关闭防火墙

    [root@centos01 ~]# systemctl stop firewalld

    4 最后检查防火墙服务,发现已经关闭了

    [root@centos01 ~]# firewall-cmd --state

    not running

    然后vsftpd服务就正常工作了

    转载请注明原文地址: https://ju.6miu.com/read-32559.html

    最新回复(0)