root@instabox-xuwbk:/www/server/panel# bt 2
===============================================
正在执行(2)...
===============================================
Stopping Bt-Tasks... done
Stopping Bt-Panel... done
root@instabox-xuwbk:/www/server/panel# sleep 3
root@instabox-xuwbk:/www/server/panel# pkill -9 -f BT-Panel
root@instabox-xuwbk:/www/server/panel# pkill -9 -f BT-Task
root@instabox-xuwbk:/www/server/panel# ss -tlnp | grep 16477
root@instabox-xuwbk:/www/server/panel# /www/server/panel/pyenv/bin/pip show gunicorn > /dev/null 2>&1 || /www/server/panel/pyenv/bin/pip install gunicorn
Collecting gunicorn
Downloading gunicorn-23.0.0-py3-none-any.whl.metadata (4.4 kB)
Requirement already satisfied: packaging in ./pyenv/lib/python3.7/site-packages (from gunicorn) (23.1)
Requirement already satisfied: importlib-metadata in ./pyenv/lib/python3.7/site-packages (from gunicorn) (6.6.0)
Requirement already satisfied: zipp>=0.5 in ./pyenv/lib/python3.7/site-packages (from importlib-metadata->gunicorn) (3.15.0)
Requirement already satisfied: typing-extensions>=3.6.4 in ./pyenv/lib/python3.7/site-packages (from importlib-metadata->gunicorn) (4.7.1)
Downloading gunicorn-23.0.0-py3-none-any.whl (85 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.0/85.0 kB 7.0 MB/s eta 0:00:00
Installing collected packages: gunicorn
Successfully installed gunicorn-23.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@instabox-xuwbk:/www/server/panel# cd /www/server/panel
root@instabox-xuwbk:/www/server/panel# cd /www/server/panel
nohup /www/server/panel/pyenv/bin/gunicorn \
-w 2 -k sync \
-b 0.0.0.0:16477 \
--timeout 120 \
"BTPanel:app" > /root/bt_gunicorn.log 2>&1 &
sleep 5
curl -i http://127.0.0.1:换你的端口/你的宝塔口/login
[1] 38708
HTTP/1.1 302 FOUND
Server: gunicorn
Date: Sun, 18 Oct 2026 04:06:04 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 197
Location: /bind
X-Frame-Options: SAMEORIGIN
<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1> <p>You should be redirected automatically to the target URL: <a href="/bind">/bind</a>. If not, click the link.