安装指南
本指南将帮助您安装和部署 PveSphere。
前置要求
前端 (pvesphere-ui)
- Node.js >= 20.19.0 或 >= 22.13.0
- pnpm >= 9
后端 (pvesphere)
- Go >= 1.23
- MySQL / PostgreSQL / SQLite
- Redis(可选,用于缓存)
Docker(可选)
- Docker >= 20.10
- Docker Compose >= 2.0
安装方式
方式一:All-in-One 测试验证(推荐用于快速体验)
如果您只是想快速体验或以单容器方式运行 PveSphere,可以直接使用预构建的 All-in-One 镜像(后端 + 前端打包在一个容器中):
docker run -d \
--name=pvesphere \
--restart=always \
-p 8080:8080 \
pvesphere/pvesphere-aio:latest
然后在浏览器中访问:
- 前端界面: http://localhost:8080
- API 服务: http://localhost:8000
- API 文档: http://localhost:8000/swagger/index.html
默认登录信息:
- 用户名:
admin - 密码:
Ab123456
⚠️ 请记住在首次登录后修改默认密码。
验证安装:
- 访问前端应用
http://localhost:8080 - 使用默认账户登录
- 检查 API 服务是否正常运行(
http://localhost:8000/swagger/index.html