gpt4 book ai didi

cron - Godaddy 托管 Cron 作业时区设置

转载 作者:行者123 更新时间:2023-12-04 21:35:46 26 4
gpt4 key购买 nike

我正在使用godaddy 托管并为codeigniter 运行cron 作业。这将在每天上午 10 点运行。所以在 cron tab 我试过这样

00 10 * * * export TZ=Asia/Dhaka; wget http://www.example.com/function

00 10 * * * TZ=Asia/Dhaka; wget http://www.example.com/function

00 10 * * * export TZ=Asia/Dhaka; /usr/bin/curl "http://www.example.com/function"

总是那些在其他时区执行的命令可能是 UTC 时区,但我需要亚洲/达卡时区 UTC +6:00。

我如何编写正确的时区命令以及在哪里编写它?

Godaddy Cron 标签看起来像这样
enter image description here

最佳答案

上面的答案对我没有帮助,他们都给了我域的日期/时间,但没有给 Cron 工作。帮助我确定 cron 工作计划的是:

  • 从 cpanel 获取您的 IP 地址
  • 通过搜索 IP xxx.xxx.xxx.xxx
  • 谷歌它所在的位置
  • 该城市/国家/地区的 Google 时间
  • 您已确定您的时区
  • 关于cron - Godaddy 托管 Cron 作业时区设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38800857/

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