The openresty itself uses the HTTP protocol to communicate,
However, there are often requirements in the project that the input is using the TCP protocol, the output is using the HTTP protocol,
At this point, the input is the TCP protocol, you need to use the NGINX_TCP module
How do I integrate the NGINX_TCP module into the openresty?
Here's how:
1, download Nginx_tcp_module, address: https://github.com/bigplum/nginx-tcp-lua-module
2. Unzip the downloaded package to the Openresty Bundel directory
3. Installing the Nginx_tcp_module module
4,gmake and then gmake install.
Nginx_tcp_module module installation is complete!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the Nginx_tcp module integration into the openresty, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.