定时任务
配置定时任务
#检查 /home/目录下是否有www目录,没有则创建一个
mkdir /home/www
#配置定时任务,必须配置的是www权限的crontab,不要在root或者其他用户下配置
crontab -uwww -e
#将下面的配置复制进去
* * * * * /data/httpd/script/queue/queue.sh /usr/local/php56/bin/php > /dev/null
* * * * * /usr/local/php56/bin/php /data/httpd/script/crontab/crontab.php >/dev/null创建一个定时任务
<cronentries>
<cron id="foodmap_tasks_supplierSync">
<description>批量跟接口同步供货商信息</description>
<schedule>* * * * *</schedule>
<enabled>true</enabled>
</cron>
</cronentries>Last updated