标签:ges span apache ring 功能 pat github 流量 时间
# cd /usr/local/src/ # wget "http://nginx.org/download/nginx-1.4.2.tar.gz" # tar -xzvf nginx-1.4.2.tar.gz # wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip # unzip ngx_req_status.zip # cd nginx-1.4.2/ # patch -p1 < ../ngx_req_status-master/write_filter.patch # ./configure --prefix=/usr/local/nginx-1.4.2 --add-module=../ngx_req_status-master # make -j2 # make install
http { # 定义状态信息名,以及空间 req_status_zone server_name $server_name 256k; req_status_zone server_addr $server_addr 256k; req_status_zone server_url $server_name$uri 256k; # 启动 req_status server_name server_addr server_url; server { server_name test.ttlsa.com; location /ttlsa-req-status { # 显示 req_status_show on; } } }
Nginx流量带宽请求状态统计(ngx_req_status)
标签:ges span apache ring 功能 pat github 流量 时间
原文地址:http://www.cnblogs.com/Aiapple/p/7368012.html