美文网首页
开放Centos防火墙端口

开放Centos防火墙端口

作者: musk | 来源:发表于2020-07-08 09:40 被阅读0次
    #添加端口
    firewall-cmd --zone=public --add-port=8080/tcp --permanent
    #删除端口
    firewall-cmd --zone=public --remove-port=8080/tcp --permanent
    #重启防火墙
    firewall-cmd --reload
    #查询端口是否开启
    firewall-cmd --query-port=8080/tcp
    #关闭防火墙
    systemctl stop firewalld
    #禁用防火墙
    systemctl disable firewalld
    

    相关文章

      网友评论

          本文标题:开放Centos防火墙端口

          本文链接:https://www.haomeiwen.com/subject/nqsqcktx.html