nginx_tcp模块集成到openresty(安装ngx_tcp_lua_module模块)

git地址:https://github.com/bigplum/nginx-tcp-lua-module

 

openresty 本身是使用http协议进行通讯的,

但是项目中经常有要求输入是使用tcp协议,输出是使用http协议,

这时,输入是tcp协议,就需要使用nginx_tcp模块

如何把nginx_tcp模块集成到openresty中呢

 

方法如下:

1,下载nginx_tcp_module,地址:https://github.com/bigplum/nginx-tcp-lua-module
2,把下载的压缩包,解压缩到openresty的bundel目录中

 

3,安装nginx_tcp_module模块

4,gmake然后再gmake install

 

nginx_tcp_module模块安装完成!

posted @ 2018-08-08 18:42  yanzi_meng  阅读(677)  评论(0编辑  收藏  举报