您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

nginx 测试

2026/2/1 20:18:35发布29次查看
重点
disable access log
output from 220mbps to 350mbps
with tcp_nodelay and tcp_nopush
output from 350mbps to 375 mbps
after open open_file_cache max
output from 375 mbps to 880mbps
这里写链接内容
24c 轻松打到22w
# 配置#user nobody;worker_processes 24;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 65536;}http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] $request '# '$status $body_bytes_sent $http_referer '# '$http_user_agent $http_x_forwarded_for';#access_log logs/access.log main; sendfile on; #tcp_nopush on;#keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; #charset koi8-r;#access_log logs/host.access.log main; location / { root html; index index.html index.htm; } #error_page 404 /404.html;# redirect server error pages to the static page /50x.html# error_page 500502503504 /50x.html; location = /50x.html { root html; } # proxy the php scripts to apache listening on 127.0.0.1:80##location ~ \.php$ {# proxy_pass http://127.0.0.1;#}# pass the php scripts to fastcgi server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param script_filename /scripts$fastcgi_script_name;# include fastcgi_params;#}# deny access to .htaccess files, if apache's document root# concurs with nginx's one##location ~ /\.ht {# deny all;#} } # another virtual host using mix of ip-, name-, and port-based configuration##server {# listen 8000;# listen somename:8080;# server_name somename alias another.alias;# location / {# root html;# index index.html index.htm;# }#}# https server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:ssl:1m;# ssl_session_timeout 5m;# ssl_ciphers high:!anull:!md5;# ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;# }#}}
# wrk -t 24 -c 100 -d 30s http://10.149.14.66/running 30s test @ http://10.149.14.66/ 24 threads and100 connections thread stats avg stdev max +/- stdev latency 1.51ms 6.52ms 160.43ms 97.95% req/sec 9.24k 1.09k 13.17k 78.55% 6632125 requests in30.10s, 5.24gb readrequests/sec: 220336.89transfer/sec: 178.39mb
版权声明:本文为博主原创文章,未经博主允许不得转载。
以上就介绍了nginx 测试,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product