gpt4 book ai didi

php - Cron 作业未使用 Curl 在 (Ubuntu Linux 10.04.1) 服务器上运行?

转载 作者:太空宇宙 更新时间:2023-11-04 04:25:45 24 4
gpt4 key购买 nike

我正在尝试在 Ubuntu Linux 10.04.1 上托管的 Magento 站点上运行 cleanup.php 脚本,脚本命令是:

curl -s -o /dev/null http://www.domain.com/cleanup.php?clean=log

和脚本:

http://www.magentocommerce.com/wiki/groups/227/maintenance_script.

我有这个脚本和命令在另一台服务器上运行(1and1 共​​享)

我浏览了一下论坛Cron job in Ubuntu并尝试了不同的命令版本但无法让它运行?服务器上启用了 Curl。

有人可以帮忙吗?非常感谢enter image description here

最佳答案

显然你没有安装curl。 :)

您可以尝试使用whereis curl让系统为您检查。

确保您已安装this package (或 32b 替代方案)。

或者您可以只使用wget用于此类任务的常见 Linux CLI 工具是什么。

关于php - Cron 作业未使用 Curl 在 (Ubuntu Linux 10.04.1) 服务器上运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9139314/

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