Skip to content

Commit

Permalink
docs: 更新Linux部署文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ikun0014 committed Apr 11, 2024
1 parent b38575b commit 30abd2c
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion src/deploy/deploy-linuxordarwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,43 @@ date: 2024-04-10
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(待补充)

0 comments on commit 30abd2c

Please sign in to comment.