—with-http_stub_status_module

nginx当前状态查询模块(与http2严重冲突)

  1. #配置nginxvim nginx.conf
  2. location /nginx-status {
  3. stub_status on;
  4. access_log off;
  5. }

image.png

—with-http_v2_module

  • 必须搭配https使用,否则主流浏览器不会采用http2协议
    1. 加载中....

完整插件

  1. --prefix=/usr/local/nginx --with-openssl=/usr/local/openssl --with-zlib=/usr/local/zlib --conf-path=/usr/local/nginx/nginx.conf --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/pcre --pid-path=/usr/local/nginx/conf/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --http-client-body-temp-path=/var/temp/nginx/client --http-proxy-temp-path=/var/temp/nginx/proxy --http-fastcgi-temp-path=/var/temp/nginx/fastcgi --http-uwsgi-temp-path=/var/temp/nginx/uwsgi --http-scgi-temp-path=/var/temp/nginx/scgi --with-http_v2_module --with-stream