提交 f54d977f 编写于 作者: W wolfcode

update

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