dougan6982 2017-02-24 13:19
浏览 61

Cron在magento 2中设置

I have tried to set up cron for magento 2 for receiving automated email. But it is not working. I didn't receive any emails

This is the command I used:

/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

I also tried the following command:

/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

Note: when I run cron:run directly I receive email. But it is not getting automated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条