windows手动安装宝塔

作者: zengde 分类: 笔记 发布时间: 2020-10-13 02:58

0.复制windows server的btsoft到本地

1.新建环境变量

BT_PANEL=D:\Btsoft\panel
BT_PYTHON=E:\command_program\Miniconda2\envs\bt3
BT_SETUP=D:\Btsoft

加入path环境变量

E:\command_program\sqlite3
E:\command_program\Miniconda2\envs\bt3
E:\command_program\Miniconda2\envs\bt3\Scripts
D:\Btsoft\panel\script

2.pip install -r requirements.txt

Flask>=1.0.2
paramiko>=2.6.0
Werkzeug>=0.15.1
Pillow==5.4.1
requests>=2.20
cffi>=1.12.3
psutil>=5.2.0
chardet>=3.0.4
Flask-Session>=0.3.1
flask-sqlalchemy>=2.3.2
gevent-websocket>=0.10.1
pyopenssl>=19.0
cryptography>=2.7
six>=1.12.0
pyotp>=2.4.0
xmltodict>=0.12.0

3.运行

E:/command_program/Miniconda2/envs/bt3/python.exe d:/Btsoft/panel/runserver.py