扫码关注官方订阅号
人生最曼妙的风景,竟是内心的淡定与从容!
能访问就怪了 你的浏览器是说http的而不是直接说uwsgi的,
最简单的方法,让uwsgi直接说http
uwsgi --http :8000 --wsgi-file test.py
或者,在部署中,让nginx说uwsgi(nginx原生支持:http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html),在用浏览器和nginx说http
我也遇到了这个问题,如果你是按照http://uwsgi-docs.readthedocs...这个教程来的。那么记得重启下nginx
sudo service nginx restart
然后再执行你那条命令
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
能访问就怪了 你的浏览器是说http的而不是直接说uwsgi的,
最简单的方法,让uwsgi直接说http
或者,在部署中,让nginx说uwsgi(nginx原生支持:http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html),在用浏览器和nginx说http
我也遇到了这个问题,
如果你是按照http://uwsgi-docs.readthedocs...这个教程来的。
那么记得重启下nginx
然后再执行你那条命令