300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 测试服务器网站并发 Nginx服务器10000 并发 优化测试(ab测试工具)

测试服务器网站并发 Nginx服务器10000 并发 优化测试(ab测试工具)

时间:2021-03-04 11:21:33

相关推荐

测试服务器网站并发 Nginx服务器10000 并发 优化测试(ab测试工具)

1.nginx监控模块

1)编译nginx,加上参数 --with-http_stub_status_module

#/usr/local/nginx/sbin/nginx -V./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

#配置指令

./configure --prefix=/usr/local

--user=nginx

--group=nginx

--with-http_ssl_module

--with-http_realip_module

--http-client-body-temp-path=/usr/local/var/tmp/nginx/client

--http-proxy-temp-path=/usr/local/var/tmp/nginx/proxy

--http-fastcgi-temp-path=/usr/local/var/tmp/nginx/fcgi

--http-scgi-temp-path=/usr/local/var/tmp/nginx/scgi

--http-uwsgi-temp-path=/usr/local/var/tmp/nginx/uwsgi

--with-http_geoip_module

--with-http_stub_status_module

2)修改nginx配置文件,添加监控状态配置

在nginx.conf的server块中添加如下代码

location /nginx_status {

# Turn on

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。