autopcr自动日常
(0)

1.克隆代码

git clone https://github.com/cc004/autopcr.git

进入项目目录:

cd autopcr

2. 安装依赖
项目中通常会有一个 requirements.txt 文件,使用 pip 安装依赖:

pip install -r requirements.txt

3.下载前端资源

先运行一次python3 _download_web.py
如果网络不好,可自行下载压缩包,然后python3 _download_web.py web.zip安装。
4.HTTP 服务器模式

python3 _httpserver_test.py

nohup 可以让程序在终端关闭后依然运行,常用方式如下:
nohup python3 _httpserver_test.py > httpserver.log 2>&1 &

关闭

pkill -f _httpserver_test.py

5.更新

cd /opt/autopcr
git pull origin main


激活 Python 虚拟环境并安装 AutoPCR 依赖
cd /opt/autopcr
source venv/bin/activate
pip install -r requirements.txt

本文为作者wuyuxuan发布,未经允许禁止转载!
下一篇
评论
    hrcrocgijv
    1个月前

    ?内容类评语?

加入评论