码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-10-06 23:56:08      阅读:397      评论:0      收藏:0      [点我收藏+]

标签:firewall   基于   emctl   star   tar   连接   默认   ice   install   

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

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

标签:firewall   基于   emctl   star   tar   连接   默认   ice   install   

原文地址:http://www.cnblogs.com/java-synchronized/p/7633193.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!