To set default cron in magento 2 just login your project using ssh and go to root directory of project and type following command:
crontab -e
after that an editor will open just paste the following code there:
* * * * * php project server root directory path/bin/magento cron:run
* * * * * php project server root directory path/update/cron.php
* * * * * php project server root directory path/bin/magento setup:cron:run
and replace project server root directory path with your project root directory path.
crontab -e
after that an editor will open just paste the following code there:
* * * * * php project server root directory path/bin/magento cron:run
* * * * * php project server root directory path/update/cron.php
* * * * * php project server root directory path/bin/magento setup:cron:run
and replace project server root directory path with your project root directory path.
Comments
Post a Comment