Centos7 关闭防火墙
来源:互联网 发布:阿里云如何注销 编辑:程序博客网 时间:2024/06/18 12:19
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下
1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl 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
- centos7如何关闭防火墙!
- centos7 关闭防火墙
- centos7 关闭防火墙
- centos7关闭防火墙
- CentOS7.0 关闭防火墙
- CentOS7 关闭防火墙
- CentOS7关闭防火墙
- centos7关闭防火墙
- 关闭Centos7的防火墙
- Centos7 关闭防火墙
- Centos7 关闭防火墙设置
- Centos7 关闭防火墙
- centos7 关闭防火墙
- centos7关闭防火墙
- centos7关闭防火墙
- centOS7如何关闭防火墙
- Centos7 关闭防火墙
- CentOS7.0 关闭防火墙
- 安鑫 阿里、腾讯、百度,谁将成为互联网的老大
- spring boot下配置spring security笔记(请面试官进来看看)
- 用fragment减少activity
- Android IPC进程间通信(从应用层源码分)《一》
- JAVA实现万年历
- Centos7 关闭防火墙
- 【转】Qt之界面实现技巧
- Linux常用命令
- 优化 SQL SELECT 语句性能的 6 个简单技巧
- Mac如何开启关闭隐藏文件
- iOS 获取当前正在显示的ViewController
- a04#安装office 64位2013基础版提示机器存在32位office卸载未完全
- MySQL-DCL篇
- 操作系统 进程管理之进程与线程