部署python3+uwsgi+django+nginx过程中,执行命令:uwsgi--inimysite_uwgi.ini提示:nopythonapplicationfound,checkyourstartuplogsforerrors
方法/步骤
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{listen80;server_name127.0.0.1;char霜杼厮贿setutf-8;location/{root/root/env3/mysite;include/etc/nginx/uwsgi_params;uwsgi_pass127.0.0.1:8007;}location/static{alias/root/env3/mysite/collected_static;}location/media{alias/root/env3/mysite/media;}}