Nginx 新版本增加TCP模块
新版tcp模块使用 --with-stream
查看原来安装的模块
查看nginx原有的模块
/opt/software/nginx/sbin/nginx -V
在configure arguments:后面显示的原有的configure参数如下:
--prefix=/opt/software/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module
编译SSL模块
切换到源码包
cd /opt/software/nginx-1.14.1
在之前的configure arguments后面增加,tcp stream模块
--with-stream
./configure --prefix=/opt/software/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-stream
运行上面的命令即可&#