博客
关于我
CentOS 关闭防火墙命令与 注意事项
阅读量:192 次
发布时间:2019-02-28

本文共 822 字,大约阅读时间需要 2 分钟。

CentOS 6?CentOS 7?????????????

?????????????????????????????????????????????????????????????CentOS?????????????????????????

??????????CentOS 6?CentOS 7???????????????????????????????????????????????????????????????????

??????????????????

CentOS 6??????

  • ??????????????

    • ???chkconfig iptables on
    • ???chkconfig iptables off
  • ????????????

    • ???service iptables start
    • ???service iptables stop
  • CentOS 7??????

  • ?????????

    • ???systemctl start firewalld.service
    • ???systemctl stop firewalld.service
    • ???????systemctl disable firewalld.service
  • ????????

    • ??TCP?????netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
    • ?????????netstat -anp | grep portno????netstat ?apn | grep 80?
  • ??????????CentOS 7???????????????CentOS 6?iptables?????????????????????????????????

    ?????????CentOS????????????????????????????????????????????????

    转载地址:http://oafn.baihongyu.com/

    你可能感兴趣的文章
    PHP imap 远程命令执行漏洞复现(CVE-2018-19518)
    查看>>
    php include和require
    查看>>
    ref 和out 区别
    查看>>
    php JS 导出表格特殊处理
    查看>>
    php json dom解析
    查看>>
    ReentrantReadWriteLock读写锁解析
    查看>>
    php laravel实现依赖注入原理(反射机制)
    查看>>
    php laravel请求处理管道(装饰者模式)
    查看>>
    ReentrantReadWriteLock读写锁底层实现、StampLock详解
    查看>>
    PHP mongoDB 操作
    查看>>
    ReentrantLock读写锁
    查看>>
    ReentrantLock的公平锁与非公平锁
    查看>>
    php mysql procedure获取多个结果集
    查看>>
    php mysql query 行数,PHP和MySQL:返回的行数
    查看>>
    php mysql session_php使用MySQL保存session会话
    查看>>