NGINX Lua libraries

The NGINX-Lua support is quite mature. Besides the module and the API, there are a couple of third-party libraries that can be used for various purposes. The following is a list of a few of the available libraries:

In order to use these libraries, include the respective scripts in the NGINX configuration file using the lua_package_path directive. Then, import the package using Lua's require statement:

lua_package_path "/home/ubuntu/lua-resty-mysql-master/lib/?.lua;;";
init_by_lua 'mysql = require "resty.mysql"';
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.4.179