nginx代理:connect()到ip:80失败(99:无法分配请求的地址)
发布时间:2020-09-01 23:45:01 所属栏目:Nginx 来源:互联网
导读:在Debian 6.0.1上作为代理运行的nginx / 1.0.12在运行一小段时间后开始抛出以下错误: connect() to upstreamip:80 failed (99: Cannot assign requested address) while connecting to upstream, client: xxx.xxx.xxx.xxx
在Debian 6.0.1上作为代理运行的nginx / 1.0.12在运行一小段时间后开始抛出以下错误: connect() to upstreamip:80 failed (99: Cannot assign requested address) while connecting to upstream,client: xxx.xxx.xxx.xxx,server: localhost,request: "GET / HTTP/1.1",upstream: "http://upstreamip:80/",host: "requesteddomain.com" 并非所有请求都会产生此错误,因此我怀疑它与服务器的负载和它遇到的某种限制有关. 我尝试过将ulimit -n提高到50k,将worker_rlimit_nofile提升到50k,但这似乎没有帮助. lsof -n为nginx显示总共1200行.
解决了这个问题. (编辑:甘南站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |