您好,欢迎来到思海网络,我们将竭诚为您提供优质的服务! 诚征网络推广 | 网站备案 | 帮助中心 | 软件下载 | 购买流程 | 付款方式 | 联系我们 [ 会员登录/注册 ]
促销推广
客服中心
业务咨询
有事点击这里…  531199185
有事点击这里…  61352289
点击这里给我发消息  81721488
有事点击这里…  376585780
有事点击这里…  872642803
有事点击这里…  459248018
有事点击这里…  61352288
有事点击这里…  380791050
技术支持
有事点击这里…  714236853
有事点击这里…  719304487
有事点击这里…  1208894568
有事点击这里…  61352289
在线客服
有事点击这里…  531199185
有事点击这里…  61352288
有事点击这里…  983054746
有事点击这里…  893984210
当前位置:首页 >> 技术文章 >> 文章浏览
技术文章

CentOS VPS如何打开80端口解决网站打不开

添加时间:2016-6-25 17:52:16  添加: 思海网络 
  你是否在使用云服务器的时候网站出现打不开的状况,那么多半是vps的80端口未打开或被封了,那么CentOS要如何打开vps 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 status

  Table: filter

  Chain INPUT (policy ACCEPT)

  num target prot opt source destination

  1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80

  2 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

  上面就是CentOS系统vps打开80端口的方法介绍了,很多人在开启80端口后不知如何查看,所以本文还介绍了vps 80端口的查看方法。


关键字:CentOS、VPS、服务器
分享到:

顶部 】 【 关闭
版权所有:佛山思海电脑网络有限公司 ©1998-2024 All Rights Reserved.
联系电话:(0757)22630313、22633833
中华人民共和国增值电信业务经营许可证: 粤B1.B2-20030321 备案号:粤B2-20030321-1
网站公安备案编号:44060602000007 交互式栏目专项备案编号:200303DD003  
察察 工商 网安 举报有奖  警警  手机打开网站