如何在Centos7中创建计划重启,我想每天下午4点重启我的Centos7服务器
发布于 2017-01-30 17:05:25
请尝试以下命令。它将在半夜重新启动计算机。
shutdown -r 0:00
添加以下行/etc/crontab也可以完成同样的操作
0 0*** /sbin/shutdown -r now
发布于 2017-10-25 01:41:41
打开crontab配置文件
vim /etc/crontab将以下行放入crontab中
0 16 * * * /usr/sbin/reboot或crontab -e
将上面的行放入
0 16 * * * /usr/sbin/reboot并重新启动crontab
systemctl restart crond.servicehttps://stackoverflow.com/questions/41852588
复制相似问题