make install PREFIX=/usr/local/LuaJIT # 导入环境变量,告诉nginx去哪里找luajit vim /etc/profile export LUAJIT_LIB=/usr/local/LuaJIT/lib export LUAJIT_INC=/usr/local/LuaJIT/include/luajit-2.0 source /etc/profile 下载及解压nginx-lua模块 wget https://github.com/openresty/lua-nginx-module/arch...
1 下载 luajit 2.0 并安装,http://luajit.org/download.html,我是直接使用源码 make && make install,所以 lib 和 include 是直接放在 /usr/local/lib 和 usr/local/include 2 下载 nginx 源码,解压,注意版本号,如果机子上已经装了 nginx,不想升级的话,请使用 /to/nginx/sbin/nginx –v 来查看...
步骤一:安装Nginx 首先,确保已经安装了Nginx。如果尚未安装Nginx,请使用包管理器进行安装。在CentOS上,可以使用以下命令安装Nginx: sudo yum install nginx 1. 步骤二:安装依赖 安装lua-nginx-module模块之前,需要先安装相关的依赖项。使用以下命令安装LuaJIT和LuaRocks: sudo yum install -y luajit luajit-devel su...
1、下载相关安装包(luajit、ngx_devel_kit、lua-nginx-module) wget https://github.com/LuaJIT/LuaJIT/archive/v2.0.4.tar.gz wget https://github.com/openresty/luajit2/archive/refs/tags/v2.1-20240626.tar.gz wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz wget --no-che...
1.预备环境 Python 2.7.8 @ ubuntu server 14.04.2版本 2.安装Django(这里使用的是pip,当然easy_install也是可以的) sudo pip install django==1.8 3.安装 Nginx sudo apt-get install nginx 4.安装 uwsgi sudo apt-get install uwsgi 5.创建个Django项目+app ...
安装lua-nginx-module cd/opt/ wget https://github.com/openresty/lua-nginx-module/archive/v0.10.13.tar.gz tar zxvf v0.10.13.tar.gz 重新编译Nginx yum install lua-devel readline-devel pcre-devel openssl-devel -y cdnginx ./auto/configure --prefix=/usr/local/nginx --with-http_stub_status_...
1.前期需要的安装包下载地址: 对应下载的网站:https://github.com/openresty luajit: wget --no-check-certificate https://github.com/openresty/luajit2/archive/refs/tags/v2.1-20210510.tar.gz lua-nginx-module:wget --no-check-certificate https://github.com/openresty/lua-nginx-module/archive/refs/...
mv lua-nginx-module-0.10.9rc7/ lua-nginx-module && mv ngx_devel_kit-0.3.1rc1/ ngx_devel_kit #重新生成makefile加入lua-module和lua-devel(进入编译安装nginx目录) ./configure --prefix=/usr/local/nginx --add-module=/opt/lua-nginx-module --add-module=/opt/ngx_devel_kit make -j2 && ...
http://wiki.nginx.org/HttpLuaModule 正文: 1 下载luajit 2.0.4并安装 http://luajit.org/download.html也可到下载 luajit2.1 https://github.com/openresty/luajit2 我是直接使用源码make && make install 所以lib和include是直接放在/usr/local/lib和usr/local/include ...