Free2Box
Crontab 產生器IT & 開發者工具Instant browser workflowFocused single-task utilityNo setup required

Crontab 產生器

視覺化建立 Cron 排程表達式

0 9 * * *Preset matchedReadable scheduleNext runs5Fields5
Schedule builder
Adjust each field directly and keep the human-readable summary in view.

Cron expression

0 9 * * *

Readable schedule

At 09:00 AM

0-59
0-23
1-31
1-12
0-6
Quick presets
Load a common schedule, then fine-tune only the fields you need.

Export schedule snapshot

Copy the expression directly or download the upcoming run list for deployment notes.

0 9 * * *5 upcoming runs

繼續下一步

用相關的下一個動作延續你的工作流程。

Expression0 9 * * *SummaryReadable scheduleUpcoming runs5PresetMatched
Next 5 executions
Local preview of the next matching dates and times.

Sat, Apr 11, 2026

09:00 AM

#1

Sun, Apr 12, 2026

09:00 AM

#2

Mon, Apr 13, 2026

09:00 AM

#3

Tue, Apr 14, 2026

09:00 AM

#4

Wed, Apr 15, 2026

09:00 AM

#5
Syntax reference
Quick reminder of the most common cron operators.
minhourdaymonthweekday
*****

* matches any value.

1-5 creates a range.

*/5 applies a step interval.

1,3,5 picks exact values.

0 9 * * 1-5 means weekdays at 9:00.

Privacy & Trust

Preview runs locally

The next-run preview is calculated in your browser so you can iterate quickly without sending schedule data anywhere.

Five-field focus

This builder targets classic five-field Unix cron syntax: minute, hour, day of month, month, and weekday.

Timezone caution

Cron usually executes in the server timezone, so confirm runtime settings before shipping production jobs.

使用方法

1

輸入數值

在輸入欄位中填入您的數字或參數。

2

即時取得結果

結果在您輸入時自動更新——無需按計算按鈕。

3

複製或儲存

將結果複製到剪貼簿或用於您的工作流程。

為什麼使用此工具

100% 免費

沒有隱藏費用,沒有付費等級——所有功能完全免費。

無需安裝

完全在瀏覽器中運行。無需下載或安裝任何軟體。

隱私且安全

您的資料永遠不會離開您的裝置。不會上傳至任何伺服器。

支援行動裝置

完全響應式設計——在手機、平板或桌面電腦上均可使用。

開發者工具指南

Cron 表達式:排程自動化任務

重點摘要

  • Cron 使用五個欄位:分鐘(0–59)、小時(0–23)、月中的日(1–31)、月份(1–12)、星期幾(0–6)。
  • 特殊字元包括:*(任何)、,(列表)、-(範圍)、/(間隔)以實現靈活的排程模式。
  • 常見模式:'0 * * * *' = 每小時、'0 0 * * *' = 每日午夜、'0 0 * * 0' = 每週日。

Cron 是 Unix 類作業系統中的基於時間的任務排程器。Cron 表達式使用簡潔的五欄位語法定義任務何時應執行。雖然功能強大,語法可能晦澀難懂——cron 產生器能將人類可讀的排程轉換為有效的 cron 語法,反之亦然。

* * * * *

五欄位 cron 格式

常見用途

1

資料庫備份

在離峰時段排程每晚資料庫備份以最小化效能影響。

2

日誌輪替

自動清理和封存每週或每月的日誌檔案。

3

報告產生

自動產生和寄送定期報告(每日銷售、每週分析)。

4

快取失效

定期刷新快取資料以確保使用者看到最新資訊。

實用技巧

使用 crontab.guru 在部署前視覺化和驗證您的 cron 表達式。

在 cron 任務中總是指定可執行檔的完整路徑——cron 以最小 PATH 環境執行。

將輸出重新導向至日誌檔(>> /var/log/myjob.log 2>&1)以偵錯 cron 任務失敗。

注意時區差異——cron 通常在伺服器的本地時區執行,而非 UTC。

本工具僅供參考與教育用途,重要場合使用前請自行驗證結果。

常見問題