小编Ism*_*eed的帖子

例外:bus.Bus不能使用nginx作为代理服务器进行Odoo 8多处理

我正在使用nginx作为代理服务器的多处理模式下处理Odoo 8,我读了很多关于这个错误的问题,但我仍然无法解决我的问题,我认为我无法在gevent中运行odoo模式,我已经配置了nginx与longpooling位置,因为很多帖子说,我的配置如下: -

nginx配置: -

upstream odoo8 {

server 127.0.0.1:8069 weight=1 fail_timeout=0;

}

upstream odoo8-im {

server 127.0.0.1:8072 weight=1 fail_timeout=0;

}

server {

listen 80;

server_name 138.201.xx.xx;

access_log /var/log/nginx/odoo.access.log;

error_log /var/log/nginx/odoo.error.log;

location /longpolling {

proxy_pass http://odoo8-im;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

proxy_redirect off;

# set headers

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto https;

proxy_connect_timeout 600;

proxy_send_timeout 600;

proxy_read_timeout 600;

send_timeout 600;

}

location / {

proxy_pass http://odoo8;

proxy_next_upstream error timeout invalid_header http_500 …
Run Code Online (Sandbox Code Playgroud)

nginx multiprocessing long-polling odoo-8

6
推荐指数
1
解决办法
3456
查看次数

标签 统计

long-polling ×1

multiprocessing ×1

nginx ×1

odoo-8 ×1