nginx_tcp模块集成到openresty,nginx_tcpopenresty


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模块安装完成!


相关内容

    暂无相关文章