crontab -e 按i进入编辑模式
***** comand
从左到右的*依次表示:分时日月周 命令
每分钟通过php去执行在这个方法(yii2)
```* * * * * /usr/bin/php /var/www/html/yishipi/yii article/timer```
每6小时执行一次
```0 */6 * * * curl http://120.55.165.117/index.php/app/index/timer```
每天8点重启php-fpm
```0 8 * * * systemctl restart php-fpm```
网友评论