version: '3'
server:
command: "php vendor/spiral/roadrunner-laravel/bin/rr-worker start"
http:
address: 0.0.0.0:8080
middleware: ["static", "headers", "gzip"]
pool:
headers:
response:
X-Powered-By: "RoadRunner"
static:
dir: "public"
forbid: [".php"]
laravel框架安装roadrunner-laravel桥:
composer require spiral/roadrunner-laravel
linux下可以后台启动: