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

 

posted @ 2020-05-14 11:23  当年亦如是  阅读(1672)  评论(0编辑  收藏  举报