当前位置: 代码迷 >> 综合 >> 【GitHub】相关解决方法
  详细解决方案

【GitHub】相关解决方法

热度:78   发布时间:2023-11-21 01:08:00.0

1. Could not resolve host: github.com

  • 打开终端,输入:ping github.com

                          发现ping不通

  • 直接修改/etc/hosts文件即可,在底部添加:

       192.30.253.112  github.com

2. ping报错Name or service not known

      ping 命令是属于ICMP协议,ping ip地址有效。若直接ping网址(域名),需要配置DNS。编辑添加:

sudo vim /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

3. 

 

 

  相关解决方案