diff --git a/start_background.sh b/start_background.sh old mode 100644 new mode 100755 index 5d6e2c8..68f9c22 --- a/start_background.sh +++ b/start_background.sh @@ -20,7 +20,7 @@ fi echo "正在启动LiuBaiBlog网站服务器..." # 使用nohup在后台运行 -nohup python3 app.py > "$LOG_FILE" 2>&1 & +nohup venv/bin/python3 app.py > "$LOG_FILE" 2>&1 & PID=$! # 保存PID diff --git a/stop_background.sh b/stop_background.sh old mode 100644 new mode 100755