1
0
mirror of synced 2026-04-29 22:38:46 +08:00

Revert "添加自动更新One-liner"

This reverts commit b5a61d9815.
This commit is contained in:
lxu
2021-12-22 14:43:12 +08:00
parent b5a61d9815
commit 01fa92976c

View File

@@ -101,13 +101,6 @@ hosts 文件在每个系统的位置不一,详情如下:
### 2.2 自动方式
#### 2.2.1 One-liner (for linux)
`sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
自动更新`/etc/hosts`文件可以添加到cron定时执行。使用前确保Github520内容在该文件最后部分。
#### 2.2.2
**Tip**:推荐 [SwitchHosts](https://github.com/oldj/SwitchHosts) 工具管理 hosts
以 SwitchHosts 为例,看一下怎么使用的,配置参考下面: