crontab -l //查看计划任务 vim /etc/crontab //打开计划任务 /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 你也可以将这个服务在系统启动的时候自动启动: 在/etc/rc.d/rc.local这个脚本的末尾加上: /sbin/service crond start
crontab -l //查看计划任务 crontab -e //编辑计划任务 */1 * * * * root 计划任务sh地址 laravel 启动任务 php artisan schedule:run larave例子: # /www/bin/php php运行位置 product 项目位置 # */3 * * * * /www/bin/php /product/artisan schedule:run >> /dev/null 2>&1
本文由:xiaoshu168 作者:xiaoshu发表,转载请注明来源!