博客
关于我
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/

    你可能感兴趣的文章
    n种方式教你用python读写excel等数据文件
    查看>>
    OAuth 2.0 MAC Tokens
    查看>>
    OAuth 及 移动端鉴权调研
    查看>>
    OAuth2 + Gateway统一认证一步步实现(公司项目能直接使用),密码模式&授权码模式
    查看>>
    OAuth2 Provider 项目常见问题解决方案
    查看>>
    OAuth2 vs JWT,到底怎么选?
    查看>>
    Vue.js 学习总结(14)—— Vue3 为什么推荐使用 ref 而不是 reactive
    查看>>
    oauth2-shiro 添加 redis 实现版本
    查看>>