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