import{_ as s,c as e,o as i,ag as n}from"./chunks/framework.BNUstrn0.js";const g=JSON.parse('{"title":"快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1768215522000}'),t={name:"guide/getting-started.md"};function l(p,a,h,o,r,d){return i(),e("div",null,[...a[0]||(a[0]=[n(`
欢迎使用 Memoh!本指南将帮助你快速上手。
Memoh 是一个专属于你的 AI 私人管家,你可以把它跑在你的 NAS,路由器等个人设备上,24 小时的为你提供服务。
在开始之前,请确保你的系统满足以下要求:
git clone https://github.com/memohai/Memoh.git
cd Memohpnpm install复制环境变量示例文件:
cp .env.example .env编辑 .env 文件,配置以下变量:
# 数据库配置
DATABASE_URL=postgresql://user:password@localhost:5432/memoh
# 管理员账户
ROOT_USER=admin
ROOT_USER_PASSWORD=your_password
# JWT 密钥
JWT_SECRET=your_jwt_secret_key
# Qdrant 向量数据库
QDRANT_URL=http://localhost:6333
# Redis 缓存
REDIS_URL=redis://localhost:6379pnpm run db:pushpnpm run api:devAPI 服务将在 http://localhost:7002 启动。