首页 > 其他 > 详细

Centos 7 系统定时重启

时间:2019-03-09 22:02:08      阅读:174      评论:0      收藏:0      [点我收藏+]

crontab -e         //系统命令

00 08 * * * root systemctl restart docker
00 08 * * * root reboot //写入需要重启的东西

查看是否执行 cd /var/log

cat -n cron | tail -n 500   

 

Centos 7 系统定时重启

原文:https://www.cnblogs.com/liubiaos/p/10503232.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!