-
Notifications
You must be signed in to change notification settings - Fork 216
/
produce.php
44 lines (42 loc) · 1.21 KB
/
produce.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
use EasySwoole\Log\LoggerInterface;
return [
'SERVER_NAME' => "EasySwoole",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => '0.0.0.0',
'PORT' => 9501,
'SERVER_TYPE' => EASYSWOOLE_WEB_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' => null,
'logConsole' => true,
'displayConsole'=>true,
'ignoreCategory' => []
],
'TEMP_DIR' => null,
'MYSQL' => [
'host' => '127.0.0.1',
'port' => 3306,
'user' => 'testEs',
'password' => 'KdhHirAsRRY8WAaM',
'database' => 'testEs',
'timeout' => 5,
'charset' => 'utf8mb4',
'POOL_MAX_NUM' => 20,
'POOL_TIME_OUT' => 1
]
];