From 0819793f4425911e469fcebfd4029c661f2ccaa5 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sat, 17 Jun 2023 16:27:12 +0800 Subject: [PATCH] yh --- config/autoload/server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/autoload/server.php b/config/autoload/server.php index e778ebd..c133094 100644 --- a/config/autoload/server.php +++ b/config/autoload/server.php @@ -20,7 +20,7 @@ return [ 'name' => 'http', 'type' => Server::SERVER_HTTP, 'host' => '0.0.0.0', - 'port' => 9501, + 'port' => env('HTTP_PORT', 9501), 'sock_type' => SWOOLE_SOCK_TCP, 'callbacks' => [ Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],