手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

no python application found

时间:2024-10-13 06:55:11

1、出现此类问题,请检查mysite_uwgi.ini、nginx.conf,我今天折腾了一天,最后,将这两个文件重新编写了一遍问题才解决。mysite_uwgi.ini,参考如下:

2、[uwsgi]socket = 127.0.0.1:8007chdir = /root/env3/mysitewsgi-file = mysite/wsgi.pyhome =/root/env3processes = 4threads = 2chmod-socket = 664vacuum = truestats =127.0.0.1:9191

3、nginx.conf,参考如下:server { listen 80; server_name 127.0.0.1; charset utf-8; location / { root /root/env3/mysite; include /etc/nginx/uwsgi_params; uwsgi_pass 127.0.0.1:8007; } location /static { alias /root/env3/mysite/collected_static; } location /media { alias /root/env3/mysite/media; }}

© 手抄报圈