当前位置:网站首页>crontab定时任务
crontab定时任务
2022-07-03 06:51:00 【AquilaEAG】
用命令crontab -e 添加如下内容
* * * * * /usr/local/bin/php /usr/local/var/www/projectName/artisan schedule:run >> /dev/null 2>&1
上面命令Crontab会每分钟去调Laravel的schedule命令,然后Laravel判断执行任务。
->cron(‘* * * * *’); 在自定义Cron调度上运行任务->everyMinute(); 每分钟运行一次任务
->everyFiveMinutes(); 每五分钟运行一次任务
->everyTenMinutes(); 每十分钟运行一次任务
->everyThirtyMinutes(); 每三十分钟运行一次任务
->hourly(); 每小时运行一次任务
->daily(); 每天凌晨零点运行任务
->dailyAt(‘13:00’); 每天13:00运行任务
->twiceDaily(1, 13); 每天1:00 & 13:00运行任务
->weekly(); 每周运行一次任务
->monthly(); 每月运行一次任务
https://www.zhihuclub.com/27284.shtml
边栏推荐
- Page text acquisition
- 学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
- SSH link remote server and local display of remote graphical interface
- [5g NR] UE registration process
- DBNet:具有可微分二值化的实时场景文本检测
- Interface test weather API
- Golang operation redis: write and read hash type data
- Stream stream
- [classes and objects] explain classes and objects in simple terms
- [untitled] 5 self use history
猜你喜欢
![[classes and objects] explain classes and objects in simple terms](/img/41/250457530880dfe3728432c2ccd50b.png)
[classes and objects] explain classes and objects in simple terms

golang操作redis:写入、读取hash类型数据

Example of joint use of ros+pytoch (semantic segmentation)

论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》

Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"

ROS+Pytorch的联合使用示例(语义分割)

Summary of remote connection of MySQL

MySQL installation

2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution

Summary of UI module design and practical application of agent mode
随机推荐
Learning notes -- principles and comparison of k-d tree and IKD tree
Abstract learning
论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》
scroll-view指定滚动元素的起始位置
golang操作redis:写入、读取kv数据
Unittest attempt
Create your own deep learning environment with CONDA
DNS forward query:
Golang operation redis: write and read kV data
2022 cisp-pte (III) command execution
[C /vb.net] convert PDF to svg/image, svg/image to PDF
The essence of interview
Summary of UI module design and practical application of agent mode
opencv
[LeetCode]404. 左叶子之和
Realize PDF to picture conversion with C #
简易密码锁
golang操作redis:写入、读取hash类型数据
Software testing learning - day 3
[Code] occasionally take values, judge blanks, look up tables, verify, etc