赞
踩
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
1.首先停止防火墙
systemctl stop firewalld
systemctl mask firewalld 注销防火墙服务
2.安装iptables-services
yum install iptables-services
3.设置开机启动防火墙
systemctl enable iptables
4.使用如下命令管理iptables
systemctl stop|start|restart iptables
5.保存防火墙规则了
service iptables save
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。