docs: 更新Linux部署文档

This commit is contained in:
ikun 2024-04-12 00:22:51 +08:00
parent b38575bf74
commit 30abd2c8c3

View File

@ -10,4 +10,43 @@ date: 2024-04-10
index: false index: false
--- ---
## 111 ## Linux部署教程演示系统Ubuntu 22.04
1.安装Python,Git
``` bash
sudo apt update
sudo apt install python3 python3-pip git -y
```
2.安装ffmpeg(可选项,如开启本地音乐播放必须安装)
``` bash
sudo apt install ffmpeg
```
3.克隆仓库
``` bash
git clone https://github.com/helloplhm-qwq/lx-music-api-server -b main
git clone https://github.moeyy.xyz/github.com/helloplhm-qwq/lx-music-api-server -b main
```
根据网络环境选择
4.安装依赖
::: details pip
``` bash
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple(可选的操作)
pip3 install -r requirements.txt
```
:::
::: details poetry
``` bash
pip3 install poetry
poetry install
```
:::
5.启动服务器
``` bash
python3 main.py
```
如果屏幕上输出了监听IP:Port那么恭喜您部署已完成!:yum:
## Mac OS(待补充)