Cron 任务 每半小时
*/30 * * * *
分钟
小时
日(月)
月
星期
每隔 30 分钟
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | */30 | every 30 minutes |
| 小时 | * | any value |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | * | any value |
Crontab 行
*/30 * * * * /path/to/script.shThe expression */30 * * * * 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.