shell下添加计划性任务

*/1 * * * * /bin/sh /tmp/hello.sh    

###每1分钟执行以下/tmp下的hello.sh脚本

service crond restart   重启任务计划
* 12  * * * /etc/init.d/httpd restart      
##  每天12:00重启Apache服务器
##  没变量的话需要加变量  /bin/sh
一无所知的世界走下去才会有惊喜 It will be a surprise right know nothing about the world
原文地址:https://www.cnblogs.com/yangxiaofei/p/4953557.html