从Centos7开始,自带的防火墙从iptables更改成了firewall。一般在企业环境,出于人力和稳定性考虑,还是用成熟的技术比较稳妥。

以下是关闭firewall的方法

systemctl stop firewalld
systemctl disable firewalld

以下是恢复iptables的方法

yum install iptables-services
systemctl start iptables
systemctl enable iptables

PS:网上流行的方法往往还多此一举加上

touch /etc/sysconfig/iptables

这样操作会导致实际iptables使用的配置文件是 /etc/sysconfig/iptables-new

请注意。

最新文章

  1. error: failed to push some refs to 'https://github.com/github账号/learn_git.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caus
  2. 【Chrome】新建Chrome插件,新建,事件行为,本地存储
  3. 如何在page_load方法判断是服务器端控件引发的page_load方法
  4. Winform屏幕截图保存C#代码
  5. sizeof(class)
  6. LLVM language 参考手册(译)(5)
  7. Gson ------ 实例演习
  8. 极度郁闷的错误调试——ajax jquery
  9. 【巧妙算法系列】【UVA 11384】 Help is needed for Dexter 正整数序列
  10. 浅析 SpringMVC 原理和配置.
  11. JAVAEE 第七周
  12. linux服务器上tomcat日志中的中文乱码
  13. MongoExport后的负载均衡问题查询及解决:can't accept new chunks because there are still 2 deletes from previous migration
  14. day 74 json 和 ajax 的实例
  15. STP RSTP
  16. AR介绍
  17. npm配置镜像、设置代理
  18. .NET Garbage-Collectors
  19. ibus拼音安装_ubuntu10.04
  20. Ini操作类

热门文章

  1. SQL查询重复记录方法大全 转
  2. jquery.transform
  3. [LeetCode] Length of Last Word 字符串查找
  4. Python学习杂记_10_三元运算符
  5. solr6.6安装
  6. ansible 2.7.1 快速开始
  7. Ansible进阶之企业级应用
  8. OpenSSL使用1(用OpenSSL生成自签名证书在IIS上搭建Https站点)(用于iOS的https访问)
  9. shell实现自动备份整个数据库,一个库备份一个文件
  10. iOS 5 does not allow to store downloaded data in Documents directory? ios5.0及以后的版本对于下载的文件存储路径有了改变