nginx1.16测试并发连接数
limit_conn_zone $binary_remote_addr zone=perip:10m;
server {
listen 80;
server_name wx110.cn;
root /data/www/wx120;
limit_conn perip 10;
location / {
index index.html ;
}
}
ab -n 100 -c 100 http://wx110.cn/test.html
Complete requests: 100
Failed requests: 0
limit_conn perip 10;
要配置在loction块中
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
http {