打印本文 打印本文 关闭窗口 关闭窗口
crond实现linux定时运行程序 -- 重启
作者:武汉SEO闵涛  文章来源:敏韬网  点击数747  更新时间:2009/4/22 23:08:57  文章录入:mintao  责任编辑:mintao
(1)先建一个文件crond.txt如下, 每天早上四点重新启动
0 4 * * * reboot
(2)上传到/opt目录
(3)运行命令
crontab /opt/crond.txt
crontab -l

打印本文 打印本文 关闭窗口 关闭窗口