係統粉 > 電腦問答 > 其他問答

已解決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
相關問答
最新其他問答
解決方法