Cron 任务 每隔一个月
0 0 1 */2 *
分钟
小时
日(月)
月
星期
在上午 12:00, 限每月 1 号, 每隔 2 个月
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | 0 | at minute 0 |
| 小时 | 0 | at hour 0:00 |
| 日(月) | 1 | on day 1 of the month |
| 月 | */2 | every 2 units |
| 星期 | * | any value |
Crontab 行
0 0 1 */2 * /path/to/script.shThe expression 0 0 1 */2 * schedules a cron job to run 每隔一个月. This is a commonly referenced cron schedule used for periodic tasks such as maintenance, cleanup, reporting, or automated workflows that run on a regular cadence.