设置链接数后出现问题
nginx吧
全部回复
仅看楼主
level 1
系统版本为:win2003 x64
nginx版本为:1.2.6
配置如下:
http:{
.....
limit_zone one $binary_remote_addr 10m;
upstream abc {
server 192.168.10.229:10000;
}
server {
listen 80;
server_name abc;
#charset koi8-r;
access_log logs/abc.access.log;
location / {
limit_conn one 1;
limit_rate 100k;
#root html;
#index index.html index.htm;
proxy_pass abc;
#include proxy.conf;
}
}
}
错误信息如下:
2014/04/13 11:27:02 [warn] 5308#4700: the "limit_zone" directive is deprecated, use the "limit_conn_zone" directive instead in C:\nginx-1.2.6/conf/nginx.conf:20
2014/04/13 11:27:02 [warn] 5912#3556: the "limit_zone" directive is deprecated, use the "limit_conn_zone" directive instead in C:\nginx-1.2.6/conf/nginx.conf:20
2014/04/13 11:27:02 [emerg] 5912#3556: shared zone "one" has no equal addresses: 02540000 vs 02480000
2014/04/13 11:27:02 [alert] 5308#4700: worker process 5912 exited with code 1
跪求各位给小弟指点迷津.....
2014年04月13日 03点04分 1
level 1
请问你问题解决了吗?
2014年07月30日 04点07分 2
level 5
nginx 新版本已经改了配置参数了,楼主参考一下这个吧
limit_conn_zone $binary_remote_addr zone=per_ip:10M;
limit_conn_zone $server_name zone=per_server:10M;
location / {
root /var/www/html/;
index index.html index.htm;
………………
limit_conn per_ip 2;
………………
2015年02月06日 02点02分 4
您好 用了您的配置 还是不行 可否在具体些
2016年06月16日 08点06分
1