Tạo cronjob chạy dưới localhost cho magento trên Ubuntu 14.04

Mở file crontab

  • sudo crontab -u www-data -e

Cron job o Ubuntu 14.04Thêm dòng config

  • * * * * * ! test -e /home/truongnguyen/www/magento-test/maintenance.flag && /bin/bash /home/truongnguyen/www/magento-test/cron.sh

crontab-5

Với magento-test là thư mục chứa source code magento

Done ^_^

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s