我使用supervisord来pipe理龙卷风,而不使用Nginx作为负载均衡器。
主pipe和uWsgi与Nginx作为负载blancer我有严重的问题。 我用瓶子作为框架。
当我从命令行运行下面的代码,并在FF中打开Nginx时,所有的工作都很好。
sudo command = /usr/local/bin/uwsgi --loop gevent --socket 127.0.0.1:8070 --wsgi-file /home/ubuntu/workspace/uwsgiServer.py -b 32768 --master --async 5 --enable-threads --listen 100 --uid root
如果我把命令行放在supervior中,那么我找不到页面。
通过Nginx提供高stream量video
uWsgi Error Python application not found [program:uwsgi] #autostart=true #autorestart=true #process_name = uwsgi-%(process_num)s command = /usr/local/bin/uwsgi --loop gevent --socket 127.0.0.1:8070 --wsgi-file /home/ubuntu/workspace//uwsgiServer.py -b 32768 --master --async 5 --enable-threads --listen 100 --uid root #--port=%(process_num)s #--log_file_prefix=%(here)s/logs/%(program_name)s-%(process_num)s.log #numprocs = 1 #numprocs_start = 8070
upstream uwsgi_b { server 127.0.0.1:8070; } location /u/ { include uwsgi_params; uwsgi_param X-Real-IP $remote_addr; uwsgi_param Host $http_host; uwsgi_pass uwsgi_b; }
Nginx作为node.js的反向代理,这个configuration有什么问题?
Sails.js +护照背后的Nginx代理
Nginxredirect从旧到新的URL
在node.js服务器上使用Nginx时,“websocket连接无效”
使用Nginx重写从http到https的特定path
你可能会添加一些更多的参数到supervisord配置,比如-pp(python path)到uwsgi命令,也许还有一些环境变量:
[program:uwsgi] command = /usr/local/bin/uwsgi --loop gevent --socket 127.0.0.1:8070 --wsgi-file uwsgiserver.py --buffer-size 32768 --master --async 5 --enable-threads --listen 100 --uid root --pp /home/ubuntu/workspace/ autostart=true autorestart=true environment=ENV_VAR='var' user=root # or other group=root # or other directory=/home/ubuntu/workspace/ umask=022
编辑 :删除Django特定的设置
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。