【问题标题】:Magento : how to run cron manually in local machine?Magento:如何在本地机器上手动运行 cron?
【发布时间】:2018-06-07 23:07:12
【问题描述】:

我想手动运行 Magento cron。我记得在 Drupal 中,我们可以手动完成,而无需在服务器中设置 cron 作业。就像我想在我的本地系统中运行 magento 的 cron 一样。我该怎么做??

【问题讨论】:

    标签: magento cron


    【解决方案1】:

    使用您的浏览器点击http://yourdomain.com/cron.php 或php-cli 在应用程序的根目录中执行cron.php

    【讨论】:

    • 我试过这个。但我得到一个简单的白页!甚至页面也没有完全运行!!
    • 您希望看到什么?我的 cron 手动运行,它只是没有输出,因为输出到 magento 日志
    • @Mayilarun 页面不会显示任何输出,您需要检查 cron 作业是否已运行以查看是否有效。
    • 如果通过 Apache 访问 cron.php 可以工作,那么您就有很大的安全问题。
    【解决方案2】:

    从您的 magento 根目录运行

    bin/magento cron:run
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-27
      • 1970-01-01
      • 1970-01-01
      • 2015-12-13
      • 1970-01-01
      • 2020-04-10
      • 1970-01-01
      • 2014-04-14
      相关资源
      最近更新 更多