lua里面函数是first-class function,这样就显得lua的函数跟C/C++里面不太一样.
local function print()--code hereend--其实就是local print = function () --匿名函数--code hereend
因为函数是first-class fun ...……
1、下载LuaJit
# wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
2、编译安装
# tar xzvf LuaJIT-2.0.5.tar.gz
# cd LuaJIT-2.0.5
# make PREFIX=/opt/programs/nginx_1.12.2/lua/luajit
# make install PRE ...……