如果出现linux的远程连接地址连接不上,出现Unit iptables.service not loaded,先检查是否是防火墙有没有关闭。
(1)如果安装了防火墙,通过以下命令关闭。
service iptables stop
(2)如果未安装防火墙,仍然远程连接不上。是因为centos7开始默认的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没有安装的,所以只需要停止firewalld服务即可:
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service
本文介绍了当遇到Linux远程连接失败并提示Unit iptables.service not loaded的问题时的解决办法。首先检查防火墙状态,若已安装,则使用service iptables stop命令关闭;若未安装,则可能是CentOS 7默认启用了firewalld,可通过执行sudo systemctl stop firewalld.service及sudo systemctl disable firewalld.service来禁用firewalld。
1021

被折叠的 条评论
为什么被折叠?



