Commit f54d977f authored by wolfcode's avatar wolfcode

update

parent 6edacd98
APP_DEBUG = false APP_DEBUG = false
APP_PORT = 8787
DB_HOST = 127.0.0.1 DB_HOST = 127.0.0.1
DB_PORT = 3306 DB_PORT = 3306
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
### 配置说明 ### 配置说明
- 请先配置根目录下 `.env` 文件里以 `[DB_]` 开头的数据库连接信息 - 安装前请先配置根目录下的 `.env` 文件相关信息
- 主要修改的是 `DB_USERNAME``DB_PASSWORD` 两个参数值,如果不喜欢 `my_blog_2022` 这个库名,可修改 `DB_DATABASE` - 主要修改 `DB_USERNAME` (数据库用户) 和 `DB_PASSWORD` (数据库密码) 两个参数值
- 程序默认数据库名 `my_blog_2022` 如果不喜欢,可修改 `DB_DATABASE` 参数值
- 程序默认端口 `8787`,如果不喜欢,可修改 `APP_PORT` 参数值
- 如需外网访问,搭配 `Nginx` 进行反向代理即可 - 如需外网访问,搭配 `Nginx` 进行反向代理即可
``` ```
......
<?php <?php
/** /**
* This file is part of webman. * This file is part of webman.
*
* Licensed under The MIT License * Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt * For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice. * Redistributions of files must retain the above copyright notice.
...@@ -13,18 +12,18 @@ ...@@ -13,18 +12,18 @@
*/ */
return [ return [
'listen' => 'http://0.0.0.0:8787', 'listen' => 'http://0.0.0.0:' . env('APP_PORT', 8787),
'transport' => 'tcp', 'transport' => 'tcp',
'context' => [], 'context' => [],
'name' => 'webman', 'name' => 'webman',
'count' => cpu_count() * 2, 'count' => cpu_count() * 2,
'user' => '', 'user' => '',
'group' => '', 'group' => '',
'reusePort' => false, 'reusePort' => false,
'event_loop' => '', 'event_loop' => '',
'pid_file' => runtime_path() . '/webman.pid', 'pid_file' => runtime_path() . '/webman.pid',
'status_file' => runtime_path() . '/webman.status', 'status_file' => runtime_path() . '/webman.status',
'stdout_file' => runtime_path() . '/logs/stdout.log', 'stdout_file' => runtime_path() . '/logs/stdout.log',
'log_file' => runtime_path() . '/logs/workerman.log', 'log_file' => runtime_path() . '/logs/workerman.log',
'max_package_size' => 10 * 1024 * 1024 'max_package_size' => 10 * 1024 * 1024,
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment