Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
cPanel 显示每 5、10 或 15 分钟运行一次 cron 的语法为
*/15
但它显示了每 30 分钟运行一次 cron 的语法
0,30
为什么语法不同?为什么不让每 30 分钟和其他人一样?IE:
*/30
假设您有 Vixie Cron,0,30在分钟字段中的含义与 相同*/30,即在小时后的 0 分钟和 30 分钟运行。
我不知道“cPanel”是什么,也不知道为什么它选择在这种情况下使用不同的语法。也许它使用*/15语法是因为它比 更方便0,15,30,45,而0,30语法是因为它更便携(对于 Vixie 以外的 Cron 实现)。
0,15,30,45