-
Notifications
You must be signed in to change notification settings - Fork 98
/
dev.php
59 lines (54 loc) · 1.57 KB
/
dev.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Created by PhpStorm.
* User: yf
* Date: 2019-01-01
* Time: 20:06
*/
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,EASYSWOOLE_REDIS_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
]
],
'TEMP_DIR' => '/tmp/',
'LOG_DIR' => null,
'PHAR' => [
'EXCLUDE' => ['.idea', 'Log', 'Temp', 'easyswoole', 'easyswoole.install']
],
'MYSQL' => [
'host' => '127.0.0.1',//防止报错,就不切换数据库了
'port' => '3306',
'user' => 'root',//数据库用户名
'password' => '',//数据库密码
'database' => 'chat',//数据库
'timeout' => '5',
'charset' => 'utf8',
'POOL_MAX_NUM' => '6',
'POOL_TIME_OUT' => '0.1'
],
/*################ REDIS CONFIG ##################*/
'REDIS' => [
'host' => '127.0.0.1',
'port' => '6379',
'auth' => '',
'POOL_MAX_NUM' => '6',
'POOL_TIME_OUT' => '0.1',
],
'FAST_CACHE' => [//fastCache组件
'PROCESS_NUM' => 1//进程数,大于0才开启
],
];