mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 06:22:52 +08:00
调整文案描述
This commit is contained in:
@@ -247,6 +247,13 @@ $ crontab -e
|
||||
|
||||
```
|
||||
|
||||
系统全局定时任务排期状态可使用以下命令进行查看。
|
||||
|
||||
```bash
|
||||
## 查看系统定时任务
|
||||
$ cronnext -acl
|
||||
```
|
||||
|
||||
## 4. PVE 自动更新
|
||||
|
||||
### 4.1.系统定时器
|
||||
|
||||
+8
-15
@@ -269,18 +269,7 @@ $ sudo /usr/local/bin/smartdns-cnlist
|
||||
$ sudo crontab -e
|
||||
```
|
||||
|
||||
在配置文件末尾,增加以下内容。
|
||||
|
||||
```bash
|
||||
## 定时任务配置项
|
||||
|
||||
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
|
||||
30 9 * * * /usr/bin/systemctl restart smartdns.service
|
||||
|
||||
```
|
||||
|
||||
若使用了 `SmartDNS` 加速规则的安装脚本,由于脚本自带服务重启功能,因此定时任务可修改如下。
|
||||
若使用了 `SmartDNS` 加速规则的安装脚本,由于脚本自带服务重启功能,因此定时任务可设置如下。
|
||||
|
||||
```bash
|
||||
## 定时任务配置项
|
||||
@@ -290,11 +279,15 @@ $ sudo crontab -e
|
||||
30 9 * * * /usr/local/bin/smartdns-cnlist
|
||||
```
|
||||
|
||||
系统全局定时任务排期状态可使用以下命令进行查看。
|
||||
若仅需定时重启 `SmartDNS` 服务,定时任务可调整如下。
|
||||
|
||||
```bash
|
||||
## 查看系统定时任务
|
||||
$ sudo cronnext -acl
|
||||
## 定时任务配置项
|
||||
|
||||
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
|
||||
30 9 * * * /usr/bin/systemctl restart smartdns.service
|
||||
|
||||
```
|
||||
|
||||
### 6.3. SmartDNS 主配置
|
||||
|
||||
Reference in New Issue
Block a user