From c601cfdca7525e5c045bba93d57879cb579e526a Mon Sep 17 00:00:00 2001 From: baixin <52996290+baixin513@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:22:14 +0800 Subject: [PATCH] =?UTF-8?q?Updated=208=20=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=90=AD=E5=BB=BA=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 8-开发环境搭建.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/8-开发环境搭建.md b/8-开发环境搭建.md index 1ff78bf..a03fbb0 100644 --- a/8-开发环境搭建.md +++ b/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";