3

Github 加速访问

 2 years ago
source link: https://www.jansora.com/notebook/107534
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Github 加速访问闲文杂记Github 加速访问 导航前往主站应用闲文杂记代码在线代码魔方房价浅析专栏戎码一生

https://github.com/ineo6/hosts

基于 DNS 更新 hosts 文件

  1. 首先将原有 dns 备份.
  2. 拉取最新的 hosts 文件拷贝到最新的 /etc/hosts

目前使用的地址是 https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts , 可能会变


echo ' recovery hosts'
cp /etc/hosts.bak /etc/hosts

echo ' refresh hosts'
curl https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts >> /etc/hosts

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK