mirror of
https://github.com/521xueweihan/GitHub520.git
synced 2025-12-24 13:37:57 +08:00
update
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user