Nginx template nginx_lua_module and echo-nginx-module installation process

ngx_lua_module is a nginx http module, which embeds the lua parser into nginx, which is used to parse and execute web background scripts written in lua language. Features: Support Windows and Linux platforms. Support high concurrency and high performance. The LUA script code is embedded in the HTML webpage, similar to PHP. Supports non-blocking database operations, currently only supports MYSQL. Supports asynchronous file IO operations. Support non-blocking SOCKET IO operation. The following briefly introduces the installation of the ngx_lua_module module. Method 1: Use the integration package provided by Daniel ZhangYichun to install quickly. Very simple, download ngx_openresty, the integrated package includes: Nginx, Lua or Luajit, ngx_lua, and some useful third-party Nginx modules. Installation steps: ./configure –with-luajit make make install The installation is complete! Method 2: Ngx_lua can be manually compiled into Nginx. First, my Nginx installation path is: /usr/local/nginx. Two modules I will try to compile: echo, lua. The required modules are as follows: liujit http://luajit.org lua http://www.lua.org ngx_devel_kit https://github.com/simpl/ngx_devel_kit echo-nginx-module https://github.com/agentzh/echo-nginx-module lua-nginx-module https://github.com/chaoslawful/lua-nginx-module Installation steps: 1. Luajit2.0 (recommended) or Lua5.1 (Lua5.2 is not supported yet) wget http://luajit.org/download/LuaJIT-2.0.0-beta9.tar.gz tar zxvf LuaJIT-2.0.0-beta9.tar.gz cd LuaJIT-2.0.0-beta9 make sudo make install PREFIX=/usr/local/luajit Note: to avoid overwriting a previous version, The beta test releases only…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索