[置顶] 欢迎您。今天是2023年03月30日。

下载安装文件

#wget http://luajit.org/download/LuaJIT-2.0.3.tar.gz

#git clone https://github.com/simpl/ngx_devel_kit.git

#git clone https://github.com/chaoslawful/lua-nginx-module.git

#git clone https://github.com/agentzh/echo-nginx-module.git

安装LuaJIT

#tar -zxf LuaJIT-2.0.3.tar.gz

#make

#make install

环境配置

#export LUAJIT_LIB=/usr/local/lib

#export LUAJIT_INC=/usr/local/include/luajit-2.0

#export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH

安装nginx模块

#./configure \
--with-http_ssl_module \
--prefix=/usr/local/nginx \
--add-module=/root/my/git/ngx_devel_kit \
--add-module=/root/my/git/lua-nginx-module \
--add-module=/root/my/git/echo-nginx-module

#make

#cp objs/nginx /usr/local/nginx/sbin/nginx

测试lua

#vi /usr/local/nginx/conf/nginx.conf

location ~* ^/hello_lua(/.*) {

  default_type 'text/plain';

  content_by_lua 'ngx.say("hello, lua!")';

}

#curl http://localhost/hello_lua/

hello, lua!

您可能也喜欢

空间申请了好久,都没有用它,感觉很浪费,我的地盘我做主,再也不用看别人脸色了!!

孕期通过B超判断胎儿的发育的大小是较有参考价值的一种方法,孕妇在做B超的时候会看到检查报告上有一些数值,这些数值就是告诉你宝宝的发育大小。

都备案好几回了,都没成功!这次备案已经好几天了,还没通过,也懒的写啥了!继续等待。。。

二维码
摄像头