定时任务使用文件导入的形势 cro...


定时任务使用文件导入的形势

crontab crontab.txt

# 每天12点更新用户的架构信息

0 12 * * * cd /www/html && php phalapi -s App.Task.updateUserInfo

# 每天3点更新用户的架构信息

0 3 * * * cd /www/html && php phalapi -s App.Task.updateUserInfo

*/1 * * * * service mysqld restart //每隔1分钟执行一次

*/10 * * * * service mysqld restart //每隔10分钟执行一次

0 */1 * * * service mysqld restart //每1小时执行一次

0 */2 * * * service mysqld restart //每2小时执行一次

0 10 * * 1 service mysqld restart //每周一10点执行

30 17 * * 5 service mysqld restart //每周五17点30分执行

0 10 1 10 * service mysqld restart //每年的10月1日10点执行

0 20 8 8 * service mysqld restart //每年的8月8日20点执行