
Linux
Linux is not Unix
缤纷落叶之忠
Anonymous
展开
-
Nginx限流
方式: 连接数限流,即并发数(ngx_http_limit_conn_module) 请求速率限速,按IP限制单位时间内的请求数(ngx_http_limit_req_module)限制请求速率配置: 首先在Nginx配置中添加如下: // 创建规则 limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s 第一个参数:$binary_remote_addr表示通过remote_addr标识来做限制,binary_的目的是原创 2020-11-08 00:12:21 · 271 阅读 · 0 评论 -
ab压测
yum install httpd-tools:安装abab -c 100 -n 100 http://test.com/:用100个并发请求100次Requests per second: 1053.73 [#/sec] (mean):当前测试服务器每秒可以处理1053.73个请求事务(mean表示平均)数值表示当前机器的整体性能,值越大越好...原创 2020-09-03 15:17:12 · 187 阅读 · 0 评论 -
nginx: [emerg] bind() to 0.0.0.0:8000 failed (13: Permission denied)
service nginx start:启动 nginx(centos...原创 2020-03-31 17:44:53 · 224 阅读 · 0 评论