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目录中

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

 

3,安装nginx_tcp_module模块

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

4,gmake然后再gmake install

 

nginx_tcp_module模块安装完成!

相关文章:

  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2021-11-28
  • 2021-05-06
  • 2021-06-17
  • 2022-02-23
  • 2021-10-18
  • 2021-10-11
相关资源
相似解决方案