gpt4 book ai didi

php - 如何通过 Cpanel 每天 6 点进行 cron 作业

转载 作者:可可西里 更新时间:2023-10-31 22:42:14 25 4
gpt4 key购买 nike

Cpanel如何在每天6点做cron作业?我通过我的 cpanel 添加了 cron 作业作为这张照片

http://i.imgur.com/vc1iv.jpg

但是该脚本一天工作一次,我需要知道 cron 或我的脚本中的错误。

最佳答案

由于那个星号,您的 cron 将在每分钟 6 点运行。

Cron format :

* * * * * *
| | | | | |
| | | | | +-- 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.

你应该把分钟 0 因为你只需要运行一次(在 06:00)。

0 6 * * * 

关于php - 如何通过 Cpanel 每天 6 点进行 cron 作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12402352/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com