在云服务器上时候,我关闭了防火墙还是不能连接!

Posted 指针怒草内存栈

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在云服务器上时候,我关闭了防火墙还是不能连接!相关的知识,希望对你有一定的参考价值。

centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。所以你只要停止firewalld服务即可:
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service

如果你要改用iptables的话,需要安装iptables服务:
sudo yum install iptables-services
sudo systemctl enable iptables && sudo systemctl enable ip6tables
sudo systemctl start iptables && sudo systemctl start ip6tables





以上是关于在云服务器上时候,我关闭了防火墙还是不能连接!的主要内容,如果未能解决你的问题,请参考以下文章