下载:https://github.com/Kong/lua-kong-nginx-module#install
./configure
--prefix=/usr/local/openrestys/openresty-1.19.3.1
--with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/"
--with-ld-opt="-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/"
--with-luajit
--without-http_redis2_module
--with-http_iconv_module
--with-http_postgres_module
--with-http_v2_module
--with-http_realip_module
--with-stream_realip_module
--with-http_sub_module
--with-http_stub_status_module
--add-module=~/Downloads/lua-kong-nginx-module-master
-j8
cp -R resty /usr/local/openrestys/openresty-1.19.3.1/luajit/share/lua/5.1/