Cron 任务 每三小时
0 */3 * * *
分钟
小时
日(月)
月
星期
在整点后的第 0 分钟, 每隔 3 小时
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | 0 | at minute 0 |
| 小时 | */3 | every 3 hours |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | * | any value |
Crontab 行
0 */3 * * * /path/to/script.shThe expression 0 */3 * * * schedules a cron job to run 每三小时. This schedule belongs to the "小时" category and is frequently used for periodic maintenance tasks, report generation, or batch processing that runs several times throughout the day.