shell中输入命令:

crontab -e

进入对应cron

 

 

添加命令:

例如:

00 2 * * * pvesh create /nodes/pve/qemu/102/status/stop
00 6 * * * pvesh create /nodes/pve/qemu/102/status/start

其中pve为节点名称,102为虚拟机编号。

 

posted on 2022-07-17 08:33  今天的努力  阅读(7997)  评论(0编辑  收藏  举报