1.安装

apt-get install cron

2.编辑

nano /etc/crontab

每月1日重启,末尾添加:
debian:

0 8 1 root /sbin/reboot

centos:

0 7 1 root reboot

含义如下:
882696.webp

3.重启crontab
ubuntu:

service cron restart

centos:

service crond restart

最后修改:2023 年 08 月 06 日
如果觉得我的文章对你有用,请随意赞赏