http://blog.csdn.net/c465869935/article/details/53242126
http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html
http://uwsgi-docs-zh.readthedocs.io/zh_CN/latest/tutorials/Django_and_nginx.html
问题1:
启动时报错:sudo nginx -c ~/uwsgi_env/mysite/my_nginx.conf
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
解决方法:原因是端口被占用:
sudo killall -9 nginx