1
0
mirror of synced 2024-07-07 20:45:13 +08:00
This commit is contained in:
xueweihan 2023-07-02 23:44:07 +08:00
parent 8d128fc82b
commit 8a1d3039dd

View File

@ -89,7 +89,11 @@ hosts 文件在每个系统的位置不一,详情如下:
#### GNUUbuntu/CentOS/Fedora
`sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
```
sudo -i
sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
exit
```
#### BSD/macOS
@ -97,6 +101,10 @@ hosts 文件在每个系统的位置不一,详情如下:
将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。
#### 在 Dcker 中运行,若遇到 `Device or resource busy` 错误,可使用以下命令执行
`cp /etc/hosts ~/hosts.new && sed -i "/# GitHub520 Host Start/Q" ~/hosts.new && curl https://raw.hellogithub.com/hosts >> ~/hosts.new && cp -f ~/hosts.new /etc/hosts`
### 2.4 AdGuard 用户(自动方式)
**过滤器>DNS 封锁清单>添加阻止列表>添加一个自定义列表**,配置如下: