【发布时间】:2014-11-23 06:18:55
【问题描述】:
在 Plesk 面板中,我收到日志错误:wget command not found。但是已经安装了 wget 命令。
我该如何解决这个问题?
cron 命令:wget -q -O –http://www.example.com/wp-cron.php?doing_wp_cron
【问题讨论】:
在 Plesk 面板中,我收到日志错误:wget command not found。但是已经安装了 wget 命令。
我该如何解决这个问题?
cron 命令:wget -q -O –http://www.example.com/wp-cron.php?doing_wp_cron
【问题讨论】:
这应该简单直接。你需要做的是安装
On Ubuntu: sudo apt-get install wget
or on Fedora/Redhat/Centos: sudo yum install wget
确保您有权运行 apt-get install 或 yum install。安装 wget 后,Plesk 中的错误应该会消失。顺便说一句,您还可以使用 cURL 作为替代解决方案来调用您的 cron 脚本,而不是 wget -q -O。
【讨论】: