Sence
1 | root@raspberrypi /h/pi# curl -sSL 'https://get.archivebox.io' | sh |
- 由上可知,由于 DNS 污染问题, raw.githubusercontent.com 经常访问不了
Solution
- 打开 ipaddress , 输入
raw.githubusercontent.com
查看目前 DNS 解析到的 IP - 如 ipaddress ,翻看可见解析到的 IP
- 最后在机器上配置 hosts 解析即可, 刷 DNS 缓存
1
2
3
4185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
Other
on pi 重启网络
1
2
3
4
5
6
7pi@raspberrypi ~> /etc/init.d/networking restart
[....] Restarting networking (via systemctl): networking.service==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'networking.service'.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
. ok使用工具刷新 DNS
sudo apt-get install nscd
sudo /etc/init.d/nscd restart
- 改变机器 DNS 解析服务器
sudo nano /etc/resolv.conf
nameserver 8.8.8.8
修改