centos7关闭防火墙
来源:互联网 发布:linux下shell编程技巧 编辑:程序博客网 时间:2024/06/11 11:31
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 关闭防火墙
- 设计模式(二十)visitor访问器
- nodejs中server.close()的使用
- day_07_文件管理
- 将元数据前补零
- UILabel(displaylabel为例,附录UIColor)
- centos7关闭防火墙
- 比较字符串
- 洛谷P1171 售货员的难题
- 堆排序(C语言版本)
- 爬取网页内所有的url和meta标签,title标签
- Linux下如何配置Kafka Cluster (Kafka族)
- 怎样快速判断掩码第一个为1的Bit位置
- ClassLoader以及双亲委托模式
- 在 SQLite3 中使用回调函数