nginx statistics in multi-workers
Posted DoubleLi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx statistics in multi-workers相关的知识,希望对你有一定的参考价值。
1. 从网上下载多进程统计补丁。https://github.com/arut/nginx-patches
2. Copy补丁文件per-worker-listener到nginx代码目录下。如\nginx-1.7.2
3. 打补丁:patch -p1 < per-worker-listener
4. make &make install
5. 修改配置文件:
daemon on;
master_process on;
worker_processes 5;
events{
worker_connections 1024;
accept_mutex off;
}
#HTTP
http{
upstream redis_pool {
server localhost:6379;
keepalive 1024 single;
}
server {
listen 8080;
listen 10000 per_worker;//第一个worker从10000开始
}
}
6. 运行Nginx,并测试:
以上是关于nginx statistics in multi-workers的主要内容,如果未能解决你的问题,请参考以下文章
nginx启动报错(1113: No mapping for the Unicode character exists in the target multi-byte code page)(示例代码
ST5222: Advanced Topics in Applied Statistics
Mysql Workbench导出数据库时报 Unknown table ‘column_statistics‘ in information_schema (1109)
Mysql Workbench导出数据库时报 Unknown table ‘column_statistics‘ in information_schema (1109)
目录:Matrix Differential Calculus with Applications in Statistics and Econometrics,3rd_[Magnus2019](代码
pandas使用groupby函数和describe函数计算不同分组的描述性统计(descriptive statistics of each group in dataframe)