当前位置:   article > 正文

阿里云访问raw.githubusercontent.com提示无法访问的问题_阿里云ecs访问不了github

阿里云ecs访问不了github

今天去下载东西的时候,访问raw.githubusercontent.com无法正常访问

原因是因为没法找到对应的ip,打开服务器的 hosts文件

vim /etc/hosts
# 添加这一行内容
199.232.68.133 raw.githubusercontent.com
  • 1
  • 2
  • 3

保存退出,继续ping一下试试。

[root@aliyun vue]# ping raw.githubusercontent.com
PING raw.githubusercontent.com (199.232.68.133) 56(84) bytes of data.
64 bytes from raw.githubusercontent.com (199.232.68.133): icmp_seq=1 ttl=49 time=297 ms
64 bytes from raw.githubusercontent.com (199.232.68.133): icmp_seq=2 ttl=49 time=283 ms
64 bytes from raw.githubusercontent.com (199.232.68.133): icmp_seq=3 ttl=49 time=274 ms
  • 1
  • 2
  • 3
  • 4
  • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/713466
推荐阅读
相关标签
  

闽ICP备14008679号