Windows10无法用浏览器访问阿里云CentOS、hadoo

2019-06-24  本文已影响0人  白面葫芦娃92

1.确认Windows关闭了防火墙



2.确认Linux关闭了防火墙

[root@hadoop002 ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

3.在Linux里ping www.baidu.com ping的通

[root@hadoop002 ~]# ping www.baidu.com
PING www.a.shifen.com (220.181.38.149) 56(84) bytes of data.
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=1 ttl=51 time=7.51 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=2 ttl=51 time=7.56 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=3 ttl=51 time=7.53 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=4 ttl=51 time=7.61 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=5 ttl=51 time=7.54 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=6 ttl=51 time=7.62 ms

4.在windows里ping 阿里云的外网ip也ping的通

C:\Users\Administrator>ping 39.98.225.47

正在 Ping 39.98.225.47 具有 32 字节的数据:
来自 39.98.225.47 的回复: 字节=32 时间=8ms TTL=49
来自 39.98.225.47 的回复: 字节=32 时间=8ms TTL=49
来自 39.98.225.47 的回复: 字节=32 时间=8ms TTL=49
来自 39.98.225.47 的回复: 字节=32 时间=8ms TTL=49

39.98.225.47 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 8ms,最长 = 8ms,平均 = 8ms

但是就是无法通过浏览器访问CentOS的访问界面
经确认,是因为没有在阿里云的安全组添加本机IP地址
解决步骤:

1.查本机IP,百度查“IP”即可
2.阿里云安全组添加本机IP和端口范围(1/65535)
上一篇下一篇

猜你喜欢

热点阅读