mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
Updated 8 开发环境搭建 (markdown)
parent
93e8ff882f
commit
c601cfdca7
14
8-开发环境搭建.md
14
8-开发环境搭建.md
|
|
@ -42,11 +42,13 @@ pip install poetry
|
|||
若要项目启动,需要准备配置文件及目录
|
||||
|
||||
- 准备配置文件
|
||||
|
||||
```bash
|
||||
# 将config_example.yml配置文件 目录拷贝至 /opt/maxkb/conf目录下 如果是Windows D:\\opt\\maxkb\\conf
|
||||
cp config_example.yml /opt/maxkb/conf
|
||||
```
|
||||
- 配置 /opt/maxkb/conf/config_example.yml
|
||||
|
||||
```
|
||||
# 数据库配置
|
||||
DB_NAME: maxkb
|
||||
|
|
@ -94,10 +96,18 @@ python main.py start
|
|||
```
|
||||
## 8.6 常见问题
|
||||
|
||||
### 8.6.1 关于数据库版本
|
||||
- 关于数据库版本
|
||||
```
|
||||
postgresql:15.x
|
||||
### 8.6.2 database "xxx" does not exist
|
||||
```
|
||||
- 关于 Python 版本
|
||||
```
|
||||
python:3.11.x
|
||||
```
|
||||
- database "xxx" does not exist
|
||||
|
||||
数据库不存在需要创建一个与配置文件相同的数据库, 这里我们创建一个maxkb的数据库
|
||||
|
||||
```
|
||||
CREATE DATABASE "maxkb";
|
||||
\c "maxkb";
|
||||
|
|
|
|||
Loading…
Reference in New Issue