修复 curl 命令

This commit is contained in:
CallMeR
2023-12-11 01:12:27 +08:00
parent e0c69c3fa5
commit 8b35afeec5
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -208,7 +208,7 @@ $ mkdir -p /tmp/SmartDNS
$ cd /tmp/SmartDNS
## 下载 SmartDNS 安装包
$ curl -O -L https://github.com/pymumu/smartdns/releases/download/Release43/smartdns.1.2023.08.11-1937.x86_64-linux-all.tar.gz
$ curl -LO https://github.com/pymumu/smartdns/releases/download/Release43/smartdns.1.2023.08.11-1937.x86_64-linux-all.tar.gz
## 解压缩 SmartDNS 安装包
$ tar zxf smartdns.1.2023.08.11-1937.x86_64-linux-all.tar.gz
@@ -244,7 +244,7 @@ $ sudo systemctl enable smartdns.service
$ sudo mkdir -p /etc/smartdns.d
## 下载广告过滤配置文件
$ sudo curl -o /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
$ sudo curl -Lo /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
```
修改 `SmartDNS` 主配置文件之前,建议关闭 `SmartDNS` 并清理 DNS 缓存文件。
@@ -344,7 +344,7 @@ server-https https://dns.alidns.com/dns-query
```bash
## 下载插件安装脚本
$ sudo curl -o /opt/smartdns_plugin.sh https://gitee.com/callmer/smartdns_china_list_installer/raw/main/smartdns_plugin.sh
$ sudo curl -Lo /opt/smartdns_plugin.sh https://gitee.com/callmer/smartdns_china_list_installer/raw/main/smartdns_plugin.sh
## 设置安装脚本可执行权限
$ sudo chmod +x /opt/smartdns_plugin.sh
@@ -372,7 +372,7 @@ $ sudo crontab -e
```bash
## 定时任务配置项
20 6 * * * /usr/bin/curl -s -R --retry 5 --retry-connrefused --retry-delay 5 --retry-max-time 60 -o /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
20 6 * * * /usr/bin/curl --retry 5 --retry-connrefused --retry-delay 5 --retry-max-time 60 -Lso /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
30 6 * * * /usr/bin/systemctl restart smartdns.service
@@ -382,7 +382,7 @@ $ sudo crontab -e
```bash
## 定时任务配置项
20 6 * * * /usr/bin/curl -s -R --retry 5 --retry-connrefused --retry-delay 5 --retry-max-time 60 -o /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
20 6 * * * /usr/bin/curl --retry 5 --retry-connrefused --retry-delay 5 --retry-max-time 60 -Lso /etc/smartdns.d/anti-ad-smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
30 6 * * * /usr/bin/bash /opt/smartdns_plugin.sh
```