From dd973294d90de7e03174f2fa60d30404412614be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E7=8B=90=E7=8B=B8?= Date: Wed, 20 Jul 2022 10:21:28 +0000 Subject: [PATCH] =?UTF-8?q?update=20PVE=E7=B3=BB=E7=BB=9F=E8=B0=83?= =?UTF-8?q?=E6=95=B4.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PVE系统调整.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/PVE系统调整.md b/PVE系统调整.md index 4eb18ad..e02e884 100644 --- a/PVE系统调整.md +++ b/PVE系统调整.md @@ -185,4 +185,19 @@ watch cat /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_cur_freq ## 查看内部温度 watch sensors -``` \ No newline at end of file +``` + + +## 4.PVE 定时重启配置 + +有时候我们需要让 PVE 服务器周期性的定时重启,则可使用以下命令: + +```bash +## 编辑系统 crontab +crontab -l + +## 选择 nano 编辑器,粘贴以下内容 +0 5 1,16 * * /usr/sbin/reboot +``` + +这表示每月1、16号的5点0分执行系统重启命令。 \ No newline at end of file