系统粉 > 电脑问答 > 其他问答

已解决CentOS 7.2 里iptables防火墙怎么关闭

提问者:wjdlt  |  浏览次  |  提问时间:2017-05-20  |  回答数量:1

CentOS 7.2 里iptables防火墙怎么关闭[root@localhost init.d]# service iptables stopRedirecting to /bin/systemctl stop iptables....

已有1条答案
寞然love寂静

寞然love寂静

回答数:32  |  被采纳数:22

[root@localhost init.d]# service iptables stopRedirecting to /bin/systemctl stop iptables.serviceFailed to stop iptables.service: Unit iptables.service not loaded.[root@localhost init.d]# iptables stopBad argument `stop'Try `iptables -h' or 'iptables --help' for more information.[root@localhost init.d]# service firewall stopRedirecting to /bin/systemctl stop firewall.serviceFailed to stop firewall.service: Unit firewall.service not loaded.[root@localhost init.d]# firewall stop-bash: firewall: 未找到命令[root@localhost init.d]# cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core) [root@localhost init.d]# systemctl enable iptablesFailed to execute operation: Access denied[root@localhost init.d]# systemctl stop iptablesFailed to stop iptables.service: Unit iptables.service not loaded.[root@localhost init.d]# /usr/libexec/iptables/iptables.init save-bash: /usr/libexec/iptables/iptables.init: 没有那个文件或目录[root@localhost init.d]#

2017-05-20 19:35:25
赞 3
相关问答
最新其他问答
解决方法