Centos 7.0防火墙问题
2024-08-29 05:53:53
从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
请注意。
最新文章
- 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
- 【Chrome】新建Chrome插件,新建,事件行为,本地存储
- 如何在page_load方法判断是服务器端控件引发的page_load方法
- Winform屏幕截图保存C#代码
- sizeof(class)
- LLVM language 参考手册(译)(5)
- Gson ------ 实例演习
- 极度郁闷的错误调试——ajax jquery
- 【巧妙算法系列】【UVA 11384】 Help is needed for Dexter 正整数序列
- 浅析 SpringMVC 原理和配置.
- JAVAEE 第七周
- linux服务器上tomcat日志中的中文乱码
- MongoExport后的负载均衡问题查询及解决:can't accept new chunks because there are still 2 deletes from previous migration
- day 74 json 和 ajax 的实例
- STP RSTP
- AR介绍
- npm配置镜像、设置代理
- .NET Garbage-Collectors
- ibus拼音安装_ubuntu10.04
- Ini操作类
热门文章
- SQL查询重复记录方法大全 转
- jquery.transform
- [LeetCode] Length of Last Word 字符串查找
- Python学习杂记_10_三元运算符
- solr6.6安装
- ansible 2.7.1 快速开始
- Ansible进阶之企业级应用
- OpenSSL使用1(用OpenSSL生成自签名证书在IIS上搭建Https站点)(用于iOS的https访问)
- shell实现自动备份整个数据库,一个库备份一个文件
- iOS 5 does not allow to store downloaded data in Documents directory? ios5.0及以后的版本对于下载的文件存储路径有了改变