设计/laravel-cli

1.0.3 2021-08-11 07:59 UTC

This package is not auto-updated.

Last update: 2024-09-19 22:39:23 UTC


README

为什么在这里使用

传统的 php-fpm 需要每次都加载 vendor 文件,这不仅消耗 CPU 和磁盘 I/O,即使使用了 opcache,也会加载大量文件。这也会浪费时间和资源。因此,将内核写入内存,减少文件访问,只保留构建请求。这可以节省大量资源

  1. 减少 CPU 访问
  2. 减少磁盘 I/O 访问
  3. 减少数据库套接字构建

安装

composer require design/laravel-cli

使用 Workerman

启动

php artisan cli:workerman start

状态

php artisan cli:workerman stop