跳至主要內容

Linux部署教程

ikun0014...小于 1 分钟

Linux部署教程,演示系统:Ubuntu 22.04

1.安装Python,Git

sudo apt update
sudo apt install python3 python3-pip git -y

2.安装ffmpeg(可选项,如开启本地音乐播放必须安装)

sudo apt install ffmpeg

3.克隆仓库

git clone https://github.com/MeoProject/lx-music-api-server -b main

git clone https://github.moeyy.xyz/github.com/MeoProject/lx-music-api-server -b main

根据网络环境选择

4.安装依赖

pip
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple(可选的操作)
pip3 install -r requirements.txt
poetry
pip3 install poetry
poetry install

5.启动服务器

使用pip
python3 main.py
使用poetry
poetry shell
python3 main.py

如果屏幕上输出了监听IP:Port,那么恭喜您,部署已完成!😋