centos 7关闭防火墙
来源:互联网 发布:罗兰电子鼓软件 编辑:程序博客网 时间:2024/05/19 20:20
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下
1、直接关闭防火墙
systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动
2、设置 iptables service
yum -y install iptables-services
如果要修改防火墙配置,如增加防火墙端口3306
vi /etc/sysconfig/iptables
增加规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
保存退出后
systemctl restart iptables.service #重启防火墙使配置生效systemctl enable iptables.service #设置防火墙开机启动
最后重启系统使设置生效即可。
阅读全文
0 0
- CentOS 7 关闭防火墙
- centos 7关闭防火墙
- centos 7关闭防火墙
- centos 7 关闭防火墙
- CentOS 7 关闭防火墙
- centos 7关闭防火墙
- CentOS 7 关闭防火墙
- 【Linux】centOS 7 关闭防火墙
- 【配置】CentOS 7 关闭防火墙
- CentOS 7 关闭防火墙 SELinux , FireWalld
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- CentOS 7 下关闭和开启防火墙
- CentOS Linux关闭防火墙
- CentOS Linux关闭防火墙
- centos 防火墙关闭
- Hibernate映射关系分析
- react-native项目移到mac上
- Goodbye, MulticoreWare Inc.
- unity调用摄像头拍照
- Sicily 1176. Two Ends
- centos 7关闭防火墙
- 内核源码--------page_address_init();
- ViewPager轮播图
- VIM高阶用法技巧
- Liferay 6.1开发学习:编译调试修改源码
- 为什么努力那么难-可心耳语(第三期)
- redhat EL6.5安装mysql5.7及常见问题
- 高德地图
- 关于 VUE的el-select 初始值设置问题