uwsgi+nginx+django

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

上一篇:201521123034 《Java程序设计》第五周学习总结


下一篇:GM MDI 2 with WIFI USER MANUAL