赞
踩
使用service iptables stop 显示not loaded
# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
Failed to stop iptables.service: Unit iptables.service not loaded.
centos7开始默认的是firewalld,虽然centos7有iptables的核心,但是iptables的服务没安装
可以用以下代替
systemctl stop firewalld.service
如果要用iptables,需要安装iptables服务
# yum install iptables-services
# systemctl enable iptables
# systemctl start iptables
# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
解决了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。