Cron在magento 2中设置

时间:2017-02-24 13:19:01

标签: php magento magento2

我试图为magento 2设置cron以接收自动电子邮件。但它没有用。我没有收到任何电子邮件

这是我使用的命令:

/usr/local/bin/php -c /home/foodstoc/public_html/bin/magento cron::run >/dev/null 2>&1

/usr/local/bin/php -c /home/foodstoc/public_html/update/cron.php >/dev/null 2>&1

/usr/local/bin/php -c /home/foodstoc/public_html/bin/magento setup:cron:run >/dev/null 2>&1

我也尝试了以下命令:

/usr/local/bin/php /home/foodstoc/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/foodstoc/public_html/bin/magento/var/log/magento.cron.log

注意:当我直接运行cron:run时,我会收到电子邮件。但它没有实现自动化。

0 个答案:

没有答案