Django之配置nginx + wsgi后, 访问出错

完成nginx所有配置后:

浏览器访问127.0.0.1, 报如下错误:

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.

解决方案:

重启uwsig 进程, uwgis.ini文件所在目录下:

killall -9 uwsgi
uwsgi --ini uwsgi.ini

重启nginx:

sudo /usr/local/nginx/sbin/nginx -s stop
sudo /usr/local/nginx/sbin/nginx

猜你喜欢

转载自blog.csdn.net/qq_38038143/article/details/80315553