1
0
mirror of synced 2026-04-29 22:38:46 +08:00
This commit is contained in:
wuyuncheng-26
2024-04-21 18:34:08 +08:00
committed by GitHub
parent ccc74fee05
commit e69b4e3c05
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ hosts 文件在每个系统的位置不一,详情如下:
将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。 将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。
#### 在 Dcker 中运行,若遇到 `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` `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`

View File

@@ -97,7 +97,7 @@ hosts 文件在每个系统的位置不一,详情如下:
将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。 将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。
#### 在 Dcker 中运行,若遇到 `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` `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`