加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dev.php 954 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangjianwen 提交于 2022-03-03 17:43 . first
<?php
use App\Log\LogHandler;
use EasySwoole\Log\LoggerInterface;
return [
'SERVER_NAME' => "EasySwoole",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => '0.0.0.0',
'PORT' => 9501,
'SERVER_TYPE' => EASYSWOOLE_WEB_SOCKET_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER
'SOCK_TYPE' => SWOOLE_TCP,
'RUN_MODEL' => SWOOLE_PROCESS,
'SETTING' => [
'worker_num' => 8,
'reload_async' => true,
'max_wait_time' => 3
],
'TASK' => [
'workerNum' => 4,
'maxRunningNum' => 128,
'timeout' => 15
]
],
"LOG" => [
'dir' => null,
'level' => LoggerInterface::LOG_LEVEL_DEBUG,
'handler' => new LogHandler(EASYSWOOLE_ROOT . '/Log'),
'logConsole' => true,
'displayConsole'=>true,
'ignoreCategory' => []
],
'TEMP_DIR' => null
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化