gpt4 book ai didi

nginx - worker_connections 还不够

转载 作者:行者123 更新时间:2023-12-03 10:18:46 25 4
gpt4 key购买 nike

我正在尝试访问 kibana应用程序部署在 nginx ,但低于

网址:- http://127.0.0.1/kibana-3.1.2

2015/02/01 23:05:05 [alert] 3919#0: *766 768 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: , request: "GET /kibana-3.1.2 HTTP/1.0", upstream: "http://127.0.0.1:80/kibana-3.1.2", host: "127.0.0.1"

Kibana 部署在 /var/www/kibana-3.1.2
我试图增加 worker_connections ,但仍然没有运气,在这种情况下低于。
2015/02/01 23:02:27 [alert] 3802#0: accept4() failed (24: Too many open files)
2015/02/01 23:02:27 [alert] 3802#0: accept4() failed (24: Too many open files)
2015/02/01 23:02:27 [alert] 3802#0: accept4() failed (24: Too many open files)
2015/02/01 23:02:27 [alert] 3802#0: accept4() failed (24: Too many open files)
2015/02/01 23:02:27 [alert] 3802#0: accept4() failed (24: Too many open files)

nginx.conf :-
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

在 location 指令的下方。
location /kibana-3.1.2{

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $remote_addr;

proxy_set_header Host $host;

proxy_pass http://127.0.0.1;

add_header Access-Control-Allow-Origin *;

add_header Access-Control-Allow-Headers *;
}

最佳答案

老问题,但我有同样的问题,接受的答案对我不起作用。

我不得不增加 worker_connections 的数量,如 here 所述.

/etc/nginx/nginx.conf

events {
worker_connections 20000;
}

关于nginx - worker_connections 还不够,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28265717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com