Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webman-blog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏洲
webman-blog
Commits
f54d977f
Commit
f54d977f
authored
May 25, 2022
by
wolfcode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6edacd98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
.env
.env
+1
-0
README.md
README.md
+4
-2
server.php
config/server.php
+14
-15
No files found.
.env
View file @
f54d977f
APP_DEBUG = false
APP_PORT = 8787
DB_HOST = 127.0.0.1
DB_PORT = 3306
...
...
README.md
View file @
f54d977f
...
...
@@ -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`
进行反向代理即可
```
...
...
config/server.php
View file @
f54d977f
<?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
,
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment