mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
update 5.PVE配置模板虚拟机.md.
This commit is contained in:
@@ -361,3 +361,18 @@ sudo snap set system refresh.timer=2:30-3:30,14:30-15:30
|
|||||||
sudo snap set system refresh.timer=mon,2:30,,fri,2:30
|
sudo snap set system refresh.timer=mon,2:30,,fri,2:30
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 1.8.配置系统定时任务
|
||||||
|
|
||||||
|
本步骤为可选操作,主要设置定时重启 Snap 服务以及操作系统。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
## 查看系统定时任务
|
||||||
|
sudo crontab -l
|
||||||
|
|
||||||
|
## 编辑系统定时任务,编辑器选择 nano
|
||||||
|
sudo crontab -e
|
||||||
|
|
||||||
|
## 定时重启 Snap 服务、操作系统
|
||||||
|
0 5 * * * snap restart adguard-home
|
||||||
|
0 6 8,24 * * /usr/sbin/reboot
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user