mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
docs: 更新Linux部署文档
This commit is contained in:
parent
b38575bf74
commit
30abd2c8c3
@ -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(待补充)
|
Loading…
x
Reference in New Issue
Block a user