openresty itself uses the http protocol for communication,
but projects often require the input to use the tcp protocol and the output to use the http protocol.
At this time, if the input is the tcp protocol, you need to use the nginx_tcp module
How to use The nginx_tcp module is integrated into openresty
The method is as follows:
1. Download nginx_tcp_module, address: https://github.com/bigplum/nginx-tcp-lua-module
2. Unzip the downloaded compressed package to In the bundle directory of openresty
3, install the nginx_tcp_module module
4, gmake and then gmake install
nginx_tcp_module module is installed!
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the integration of nginx_tcp module into openresty, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.