apt-get install cron #安装Crontab
/etc/init.d/cron restart #重启Crontab
crontab -e #编辑定时任务
crontab -r #移除定时任务
crontab -l #查看定时任务
判断crond 是否在运行:pgrep crond或者pgrep cron,如果有在运行则返回进程号。
* * * * * /usr/local/php56/bin/php 项目路径/artisan schedule:run >> /dev/null 2>&1
/dev/null日志抛出不打印,也可以写个日志输入的路径/home/test.txt