在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
一、下载luajit 2.0 http://luajit.org/download.html 二、下载nginx源代码 http://www.nginx.org/en/download.html 三、下载nginx_devel_kit https://github.com/simpl/ngx_devel_kit/tags 四、下载lua-nginx-module https://github.com/chaoslawful/lua-nginx-module/tags 五、先安装luajit make & make install 六、设置环境变量: export LUAJIT_LIB=/usr/local/lib export LUAJIT_INC=/usr/local/include/luajit-2.0 七、安装nginx ./configure --with-http_stub_status_module --add-module=/mnt/hgfs/vmware/ngx_devel_kit-0.2.17rc2 --add-module=/mnt/hgfs/vmware/lua-nginx-module-0.7.5rc1 make -j2 make install 八、运行 报错误: [root@localhost nginx]# sbin/nginx -v 解决: echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf /sbin/ldconfig
|
请发表评论