Nginx性能统计模块http_stub_status_module使用
2016-01-29 12:49
1016 查看
1、进入nginx源码目录,重新配置编译参数
2、重新编译安装
3、重启nginx
4、为了便于在网页上查看统计信息,在配置文件nginx.conf中加入
5、重新加载nginx
6、页面查看地址:http://ip/status
统计结果类似:
7、为了使nginx能够相应足够多的请求,要保证系统可同时打开文件数量足够多
./configure --prefix=/usr/local/nginx/ --with-http_stub_status_module
2、重新编译安装
make && make install
3、重启nginx
pkill -9 nginx /usr/local/nginx/sbin/nginx
4、为了便于在网页上查看统计信息,在配置文件nginx.conf中加入
location /status { stub_status on; access_log off; }
5、重新加载nginx
/usr/local/nginx/sbin/nginx -s reload
6、页面查看地址:http://ip/status
统计结果类似:
Active connections: 2001 server accepts handled requests 303662 303484 209204 Reading: 0 Writing: 1073 Waiting: 928
7、为了使nginx能够相应足够多的请求,要保证系统可同时打开文件数量足够多
ulimit -n 20480
相关文章推荐
- 网络遇到“QQ能登录但是不能打开浏览器”的问题
- 线性规划与网络流24题 太空飞行计划问题 (最小割及输出方案)
- 网络IO之阻塞、非阻塞、同步、异步总结
- 人工神经网络的设计与实现(二) 感知机
- (翻译)2016美国数学建模MCM D题 翻译:测量协会信息网络的演变和影响
- Wireshark的TCP segment of a reassembled PDU
- 2016-1-29 图解HTTP(04)
- poj 3436 ACM Computer Factory(网络流最大流)
- http://www.uucode.net
- Network 【简述GET/POST以及如何去选择】
- 关于HTTP请求中的#号
- Caffe fine-tuning 微调网络
- 计算机网络常见面试题总结
- Android 使用OkHttp扩展Volley
- javaWeb笔记(二) httpServlet
- Android 实时监听网络状态
- iOS 【OC 封装网络请求业务类(AFHTTPSessionManager)】
- 利用openWRT模拟网络丢包和延迟
- iOS socket连接和http连接的区别
- 卷积神经网络Lenet-5实现