如何在Cpanel每天6点钟完成cron工作?我在我的cpanel中添加了cron job作为这张图片
但是脚本在一天中工作的次数更多,我需要知道cron或我脚本中的错误.
Mih*_*rga 20
由于那个星号,你的cron将在每分钟6点运行.
* * * * * *
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)
Any of these 6 fields may be an asterisk (*).
This would mean the entire range of possible values, i.e. each minute, each hour, etc.
Run Code Online (Sandbox Code Playgroud)
你应该把分钟0,因为你只需要运行一次(在06:00).
0 6 * * *
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19533 次 |
| 最近记录: |