如果IP可以通的话 一般是防火墙引起

方法1、cat /etc/sysconfig/iptables

# Generated by iptables-save v1.4.7 on Fri Nov 18 01:51:49 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [40:3968]
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
-A INPUT -p icmp -j ACCEPT 
-A INPUT -i lo -j ACCEPT 
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT 
-A INPUT -j REJECT --reject-with icmp-host-prohibited 
-A FORWARD -j REJECT --reject-with icmp-host-prohibited 
COMMIT

-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

方法2、

[root@localhost ]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[root@localhost ]# /etc/init.d/iptables save
[root@localhost ]# /etc/init.d/iptables restart

 

 

2

相关文章:

  • 2021-09-27
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2021-12-12
  • 2021-12-13
  • 2021-08-02
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案