利用 crontab 定时更新 Linux 的 hosts 文件
任选一条
sh -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/gxggxl/GitHub520-Update-Hosts/master/install.sh)"
wget https://ghproxy.com/https://raw.githubusercontent.com/gxggxl/GitHub520-Update-Hosts/master/install.sh && chmod 700 install.sh && bash install.sh
#CentOS
service crond restart
#Debian
/etc/init.d/cron restart