美文网首页
Windows10无法用浏览器访问阿里云CentOS、hadoo

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

作者: 白面葫芦娃92 | 来源:发表于2019-06-24 20:10 被阅读0次

    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)

    相关文章

      网友评论

          本文标题:Windows10无法用浏览器访问阿里云CentOS、hadoo

          本文链接:https://www.haomeiwen.com/subject/bezoqctx.html