From 42c4db6c01db71abe3fb4f27140fc5e337027e4f Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 21:02:50 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E5=A4=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=89=A7=E8=A1=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 ++++++++++++++++-------------- deploy.sh | 3 +-- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fa6372b..73b8ad2 100644 --- a/README.md +++ b/README.md @@ -21,25 +21,27 @@ _✨ 服务器状态 - 客户端 ✨_ ## 💿 安装 -使用 pip 安装(确保包路径在环境变量下) +- Linux 可使用脚本安装,带自动部署和自启动 - pip install server-status - -Debian系请使用pipx安装 - -```bash -sudo apt install pipx -sudo pipx install server-status +```shell +curl -sSL https://raw.githubusercontent.com/snowykami/server-status-client/refs/heads/main/deploy.sh | sudo bash ``` -若出现环境问题,手动部署 -```yaml -git clone https://github.com/snowykami/server-status-client.git -python -m venv .venv -source .venv/bin/activate +- 或手动部署 + +```shell +# 克隆仓库 +git clone https://github.com/snowykami/server-status-client +cd server-status-client + +# 配置环境 +python3 -m venv venv +source venv/bin/activate +# 安装依赖 pip install pdm pdm install -python main.py --your-args + +# 如需自启动请自行添加到系统服务 ``` ## 🎉 使用 diff --git a/deploy.sh b/deploy.sh index f8e604c..d6f3da7 100755 --- a/deploy.sh +++ b/deploy.sh @@ -99,5 +99,4 @@ EOF" systemctl enable server-status-client systemctl start server-status-client -echo "server-status-client installed successfully" - +echo "server-status-client installed successfully" \ No newline at end of file