linux启动计划任务crontab

前端之家收集整理的这篇文章主要介绍了linux启动计划任务crontab前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

linux启动计划任务crontab etc目录下

@H_404_2@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

用户目录

@H_404_2@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


猜你在找的Linux相关文章