nginx&gunicorn&django阿里云简单部署

来源:互联网 发布:java的四大特性 编辑:程序博客网 时间:2024/05/16 00:47

关键步骤:

nginx.conf中设置

proxy_pass http://172.18.204.154:9000;    # 172.18.204.154为阿里云私网IP

终端启动

nohup gunicorn --worker-class=gevent romanloaddotcom.wsgi:application -b 172.18.204.154:9000&


其它基本参照:http://www.isaced.com/post-248.html