踩坑修改Flask项目uwsgi.ini文件使其他机器能访问服务

[uwsgi]
http = 172.23.25.86:7777
daemonize= /Users/chenwenbin/PycharmProjects/CaptainAmerica/uwsgi.log
processes = 5
threads = 1
buffer-size = 32768
master = true
mount = /App=/Users/chenwenbin/PycharmProjects/CaptainAmerica/app.py
mount = /Bussiness=/Users/chenwenbin/PycharmProjects/CaptainAmerica/bussiness.py
manage-script-name = true
callable=app

http后面使用服务器ip地址,不要用127.0.0.1
换成ip地址后本地请求使用localhost请求不通,需要换成ip地址

猜你喜欢

转载自blog.csdn.net/muskjp/article/details/106894281