nginx -stream(tcp连接)反向代理配置 实现代理ldap转发

1. stream模块安装

nginx默认安装的时候无法加载流stream模块,需要在启动参数里加上–with-stream。

解决方法:
重新对源文件进行编译、安装,通过添加–with-stream参数指定安装stream模块。
nginx安装教程

[root@localhost nginx-1.12.2]# ./configure --with-stream
[root@localhost nginx-1.12.2]# make & make install
原文地址:https://www.cnblogs.com/zihanxing/p/12887391.html