1.安装apt-get install cron 2.编辑nano /etc/crontab 每月1日重启,末尾添加:debian:0 8 1 root /sbin/rebootcentos:0 7 1 root reboot含义如下:3.重启crontabubuntu:service cron restart centos:service crond restart 最后修改:2023 年 08 月 06 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏