一些解决被Github拒绝链接的方法

1.以https://raw.githubusercontent.com无法下载解决流程为例

        1.百度打开该网址,找到相应ip地址,选择其中一个即可,是否能连通可用ping操作(代码ping -c 5  ip地址)。

        2.打开hosts文件

                   windows: C:\Windows\System32\drivers\etc\hosts
                   ubuntu:/etc/hosts(打开代码sudo gedit /etc/hosts)

        3.将1中的ip地址复制到hosts文件中。

博文来自:

https://blog.csdn.net/jie030901106/article/details/116596637https://blog.csdn.net/jie030901106/article/details/116596637

补充ping操作详细博文:

https://blog.csdn.net/yuguiyang1990/article/details/40072445?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168731400716800185892723%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=168731400716800185892723&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-4-40072445-null-null.142^v88^control_2,239^v2^insert_chatgpt&utm_term=ubuntu%E6%80%8E%E4%B9%88ping&spm=1018.2226.3001.4187icon-default.png?t=N5K3https://blog.csdn.net/yuguiyang1990/article/details/40072445?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168731400716800185892723%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=168731400716800185892723&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-4-40072445-null-null.142^v88^control_2,239^v2^insert_chatgpt&utm_term=ubuntu%E6%80%8E%E4%B9%88ping&spm=1018.2226.3001.4187

你可能感兴趣的:(服务器,运维)