zoukankan      html  css  js  c++  java
  • centos 防火墙端口开放

    开放端口

    永久的开放需要的端口

    sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
    sudo firewall-cmd --reload
    

    之后检查新的防火墙规则

    firewall-cmd --list-all
    

    关闭防火墙

    由于只是用于开发环境,所以打算把防火墙关闭掉

    //临时关闭防火墙,重启后会重新自动打开
    systemctl restart firewalld
    //检查防火墙状态
    firewall-cmd --state
    firewall-cmd --list-all
    //Disable firewall
    systemctl disable firewalld
    systemctl stop firewalld
    systemctl status firewalld
    //Enable firewall
    systemctl enable firewalld
    systemctl start firewalld
    systemctl status firewalld


    作者:Devid
    链接:https://www.jianshu.com/p/bad33004bb4f
    來源:简书
    简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
  • 相关阅读:
    为什么富人越来越富,穷人越来越穷?
    计算几何基础_点_向量_极角排序
    滑窗模板_双向队列
    后缀数组
    AC自动机
    RMQ_ST表
    二叉树求逆序对(伪AC 23333)
    分块
    莫队
    树状数组_二维
  • 原文地址:https://www.cnblogs.com/zafu/p/9949190.html
Copyright © 2011-2022 走看看