Nginx状态统计
1、安装nginx时需将--with-http_ssl_module --with-http_stub_status_module模块开启
2、修改nginx配置文件/usr/local/nginx/conf/nginx.conf
将下列代码写入需要统计的虚拟主机server标签中
location /nginx_status{
stub_status on;
access_log off;
}
3、客户端Web访问网址:http://IP/nginx_status
"Active connections"表示当前的活动连接数;
"server accepts handled requests"表示已经处理的连接信息
三个数字依次表示已处理的连接数、成功的 TCP 握手次数、已处理的请求数