./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.
解决办法:
apt-get install libssl-dev
apt-get install openssl
安装成功
4.测试nginx-lua模块安装是否成功
在nginx的配置文件server模块添加
location /hello {
default_type 'text/plain';
content_by_lua 'ngx.say("hello, lua")';
}