This commit is contained in:
xueweihan
2024-06-29 12:58:32 +08:00
parent d62b835af8
commit 60447e9669

View File

@@ -88,7 +88,7 @@ hosts 文件在每个系统的位置不一,详情如下:
### 2.3 一行命令
#### windows
#### Windows
使用命令需要安装[git bash](https://gitforwindows.org/)
复制以下命令保存到本地命名为**fetch_github_hosts**
@@ -122,7 +122,7 @@ rm "$_hosts"
将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。
#### 在 Docker 中运行,若遇到 `Device or resource busy` 错误,可使用以下命令执行
**在 Docker 中运行,若遇到 `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`