Skip to content

gxggxl/GitHub520-Update-Hosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub520-Update-Hosts

利用 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

重启 定时任务(cron)

#CentOS
service crond restart

#Debian
/etc/init.d/cron restart

HOSTS 文件更新地址

https://github.com/521xueweihan/GitHub520

About

利用 crontab 定时更新 Linux 的 hosts 文件

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages