-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 6f0d97d. # Conflicts: # src/Resource/Config.php
- Loading branch information
1 parent
c8c8b3f
commit 644ea7a
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?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_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER | ||
'SOCK_TYPE' => SWOOLE_TCP, | ||
'RUN_MODEL' => SWOOLE_PROCESS, | ||
'SETTING' => [ | ||
'worker_num' => 8, | ||
'max_request' => 5000, | ||
'task_worker_num' => 8, | ||
'task_max_request' => 1000, | ||
], | ||
], | ||
'TEMP_DIR' => null, | ||
'LOG_DIR' => null, | ||
'CONSOLE' => [ | ||
'ENABLE' => true, | ||
'LISTEN_ADDRESS' => '127.0.0.1', | ||
'HOST' => '127.0.0.1', | ||
'PORT' => 9500, | ||
'EXPIRE' => '120', | ||
'AUTH' => null, | ||
'PUSH_LOG' => true, | ||
], | ||
'FAST_CACHE' => [ | ||
'PROCESS_NUM' => 0, | ||
'BACKLOG' => 256, | ||
], | ||
'DISPLAY_ERROR' => true, | ||
]; |