1. 安装 UFW
sudo apt update
sudo apt install ufw
2024/10/8大约 2 分钟约 693 字
sudo apt update
sudo apt install ufw
配置文件config.ini
[uwsgi]
socket = 127.0.0.1:8001
# python module
module = blog:app
processes = 1 //处理器个数
threads = 2 //线程个数
master = true
home = venv //python 的位置,这里是virtualenv
pidfile=/var/run/uwsgi.pid // pidfile 便于停止进程