host的一些修改手动添加:

vim /etc/hosts

或者

gedit /etc/hosts

复制下列DNS代码:

# GitHub520 Host Start
140.82.114.26                 alive.github.com
140.82.114.26                 live.github.com
185.199.108.154               github.githubassets.com
140.82.114.22                 central.github.com
185.199.108.133               desktop.githubusercontent.com
185.199.108.153               assets-cdn.github.com
185.199.108.133               camo.githubusercontent.com
185.199.108.133               github.map.fastly.net
199.232.69.194                github.global.ssl.fastly.net
140.82.114.3                  gist.github.com
185.199.111.153               github.io
140.82.113.4                  github.com
192.0.66.2                    github.blog
140.82.114.6                  api.github.com
185.199.108.133               raw.githubusercontent.com
185.199.108.133               user-images.githubusercontent.com
185.199.108.133               favicons.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.108.133               avatars4.githubusercontent.com
185.199.108.133               avatars3.githubusercontent.com
185.199.108.133               avatars2.githubusercontent.com
185.199.108.133               avatars1.githubusercontent.com
185.199.108.133               avatars0.githubusercontent.com
185.199.108.133               avatars.githubusercontent.com
140.82.113.9                  codeload.github.com
52.217.139.73                 github-cloud.s3.amazonaws.com
52.216.104.27                 github-com.s3.amazonaws.com
52.217.108.108                github-production-release-asset-2e65be.s3.amazonaws.com
52.216.142.228                github-production-user-asset-6210df.s3.amazonaws.com
52.217.81.148                 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153               githubstatus.com
64.71.144.202                 github.community
23.100.27.125                 github.dev
185.199.108.133               media.githubusercontent.com# Update time: 2021-11-27T12:05:26+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

保存后回到终端:

sudo rcnscd restart

sudo systemctl restart NetworkManager

部分内容引用:Github访问加速,超稳定_aosiweixin的博客-CSDN博客_github最新dns

关于github在linux上的加速DNS设置相关推荐

  1. linux上配置zabbix并设置企业微信,机器人以及自主告警

    linux上配置zabbix并设置企业微信,机器人以及自主告警 配置lamp 提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 linux上配置zabbix并设置企业微信,机 ...

  2. 教你如何在 Linux 上为 SSH 登录设置电子邮件提醒

    在本文中介绍如何在Linux系统上为ssh登录设置电子邮件提醒.以接收有关对root用户的未经授权或非法登录访问的警报. .bashrc文件是做什么的? .bashrc文件是一个脚本,每当以交互方式启 ...

  3. Linux上安装ZooKeeper并设置开机启动(CentOS7+ZooKeeper3.4.10)

    1下载Zookeeper 2安装启动测试 2.1上载压缩文件并解压 2.2新建 zookeeper配置文件 2.3安装JDK 2.4启动zookeeper 2.5查看zookeeper的状态 3将Zo ...

  4. linux bash 变量_如何在Linux上的Bash中设置环境变量

    linux bash 变量 fatmawati achmad zaenuri/Shutterstock Fatmawati achmad zaenuri / Shutterstock There's ...

  5. linux 搭建github,github在linux上的环境搭建-Go语言中文社区

    Centos版 1.git的安装: yum  install  git yum  的配置详见:http://blog.csdn.net/qq_32345239/article/details/5243 ...

  6. linux上的ftp怎么设置编码格式,linux ftp客户端的编码问题

    准备下载ftp上的文件,记得curl可以实现下载ftp的文件,然后尝试了, curl ftp://username:password@192.168.1.2/平台全量包/package0811.zip ...

  7. 网卡混杂模式Promiscuous与linux上混杂模式的设置

    1 网卡工作模式 (1) 广播模式(Broad Cast Model):它的物理地址(MAC)地址是 0Xffffff 的帧为广播帧,工作在广播模式的网卡接收广播帧. (2) 多播传送(MultiCa ...

  8. window上远程访问linux上的neo4j的设置

    1.在neo4j.conf文件中的 将dbms.connectors.default_listen_address=0.0.0.0前面的注释去掉即可 2.直接采用:linux主机的ip + :7474 ...

  9. linux系统chromium设置中文,在linux上使用更新替代设置Chromium作为默认的web浏览器...

    我尝试使用update替代方法通过以下命令将Chromium设置为默认的web浏览器.虽然我成功地将'/snap/bin/chromium'添加到--config中,但它没有起作用. levi@Lab ...

最新文章

  1. 钉钉自定义机器人python_使用钉钉自定义机器人发送舔狗日记[70行][python]
  2. PHPMailer配置QQ邮箱163邮箱和谷歌邮箱发送邮件
  3. PHP7新增的主要特性
  4. 对身体的挣脱与自足的想象:谈阿满的小说集《双花祭》
  5. 我看到东边的阳光就这样照进车窗
  6. layui框架的优缺点
  7. java程序编辑器_java实现编辑器(一)
  8. 关于回复某个评论的功能小改进
  9. 机器学习——Gradient Boost Decision Tree(Treelink)
  10. pandas merge应用
  11. 计算机网络专业怎么厉害,面试自我介绍:计算机网络专业
  12. python 3d重建_python三维重建
  13. Advised,Advisor,Advice,Pointcut
  14. Windows10 creators update comeing
  15. [2019.7.31~2019.8.15]纪中集训游记
  16. vue2知识点:数据代理
  17. 程序员的算法趣题Q50: 完美洗牌
  18. 嵩天python百度云盘_嵩字取名的含义
  19. 【数论】GDKOI day1 讲座(数论基本知识 详)
  20. 孙源即将分享 DynamicCocoa 实现细节

热门文章

  1. 计算机安全监测技术中,计算机软件安全检测技术分析论文
  2. Linux虚拟机IP地址、主机名、映射 (1)
  3. 淮北师范大学的计算机科学与技术怎么样,淮北师范大学和安庆师范大学怎么样?两个大学哪个更好?...
  4. vue仿京东放大镜加商品缩略图轮播组件
  5. 服药最佳时间的选择,千万不要乱吃!
  6. QT界面:重写鼠标事件/实时显示Label中鼠标位置
  7. 利用html实现天天动听界面
  8. Python3中datetime不同时区转换介绍与踩坑
  9. 计算机软件硕士论文参考文献,计算机软件硕士论文参考文献.doc
  10. 计算机专业答辩开场白,计算机专业论文答辩开场白(2篇)