标准五段 cron(分钟 小时 日 月 星期)。本地按浏览器时区推算下次执行时间。
cron is the scheduled-task tool built into Linux that runs scripts or commands automatically at set intervals without manual intervention. This tool calculates the next trigger times from a standard five-field cron expression (minute hour day month weekday), so you can verify whether your crontab expression is correct. For an expression like 0 */6 * * *, just enter the first five fields to generate the execution time list.
A standard crontab expression has five fields: minute, hour, day, month, and weekday:
Each field supports the asterisk * (any value), a concrete value (e.g. 5), a list (e.g. 1,15), a range (e.g. 8-18), and a step (e.g. */10, 0-30/5). When both day-of-month and weekday are restricted, cron treats them as an OR (either one matching is enough).
* * * * * — every minute*/10 * * * * — every 10 minutes0 * * * * — every hour on the hour30 21 * * * — daily at 21:303,15 * * * * — at minute 3 and 15 of every hour3,15 8-11 * * * — at minute 3 and 15 of hours 8 to 110 0 * * 0 — every Sunday at midnight0 0 1 * * — on the 1st of every month at midnightservice crond start — start the cron serviceservice crond stop — stop the cron serviceservice crond restart — restart the cron serviceservice crond reload — reload the configurationcrontab -l — list the current crontabcrontab -e — edit the crontabcrontab -r — remove the crontab