阿里云VPS开启80端口

使用阿里云的云服务器,备案通过了,网站确打不开了,居然把80端口封了。。。

CentOS 防火墙开启80端口

#/sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT

#/sbin/iptables -I INPUT -p tcp –dport 22 -j ACCEPT

然后保存:#/etc/rc.d/init.d/iptables save

注意需要重启服务哦:执行service iptabels save 与 service iptables restart

端口查看方法:

vhost]# /etc/init.d/iptables statusTable: filterChain INPUT (policy ACCEPT)num target prot opt source destination1 ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 tcp dpt:802 ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 tcp dpt:80

Chain FORWARD (policy ACCEPT)num target prot opt source destination

Chain OUTPUT (policy ACCEPT)num target prot opt source destination

阿里云VPS开启80端口

相关文章:

你感兴趣的文章:

标签云: