xuke123 发表于 2018-11-14 08:17:49

nginx lua-moonstar

  yum install -y yum install -y pcre* gccautoconf automakemakezlibzlib-developenssl openssl-devel pcre pcre-devel wget
  cd /usr/local/src
  #wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz
  wget http://192.168.10.210/LuaJIT-2.0.2.tar.gz
  tar -xvfLuaJIT-2.0.2.tar.gz
  cd LuaJIT-2.0.2
  make && make install
  cd ..
  #wget http://nginx.org/download/nginx-1.2.4.tar.gz
  wget http://192.168.10.210/nginx-1.2.4.tar.gz
  #wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.18.tar.gz
  wget http://192.168.10.210/ngx_devel_kit-0.2.18.tar.gz
  #wget https://github.com/chaoslawful/lua-nginx-module/archive/v0.8.3rc1.tar.gz
  wget http://192.168.10.210/lua-nginx-module-0.8.3rc1.tar.gz
  echo "export LUAJIT_LIB=/usr/local/lib" >>/etc/profile
  echo "export LUAJIT_INC=/usr/local/include/luajit-2.0" >> /etc/profile
  source /etc/profile
  ./configure --prefix=/usr/local/nginx --add-module=/usr/local/src/ngx_devel_kit-0.2.18 --add-module=/usr/local/src/lua-nginx-module-0.8.3rc1
  make -j2
  make install
  ln -s   /usr/local/lib/libluajit-5.1.so.2/lib64/libluajit-5.1.so.2

页: [1]
查看完整版本: nginx lua-moonstar