【nginx】limit_conn_zone无效?

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

阅读 4.3k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题