Linux下ThinkPHP5实现定时器任务 - 结合crontab
Linux下ThinkPHP5实现定时器任务 - 结合crontab
1.在/application/command创建要配置的PHP类文件,需要继承Command类,并重写configure和execute两个方法,例如:`
<?php
2 namespace app\command;
3 use think\console\Command;
4 use think\console\...
转载
2019-08-10 09:41:51 ·
510 阅读 ·
0 评论