日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Nginx >内容正文

Nginx

Tengine+LUA+Nginx-GridFS+jemalloc编译安装

發布時間:2024/1/17 Nginx 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Tengine+LUA+Nginx-GridFS+jemalloc编译安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

操作系統

ubuntu 14.04 LTS


Nginx-GridFS為nginx直接訪問mongoDB的擴展模塊,目前只支持到mongodb2.6.12


mongodb安裝請自己百度




#安裝依賴包保平安

apt-get install root-system-bin autoconf automake gcc c++ libgeoip-dev libxml++2.6-dev libxslt1-dev libxslt1.1 libgd-dev build-essential libyajl-dev git libreadline6 libreadline6-dev



#下載相關軟件源碼包

wget https://github.com/jemalloc/jemalloc/releases/download/4.2.1/jemalloc-4.2.1.tar.bz2

wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz

wget http://zlib.net/zlib-1.2.8.tar.gz

wget http://www.lua.org/ftp/lua-5.3.3.tar.gz

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

wget https://openssl.org/source/openssl-1.0.2h.tar.gz


#解壓

tar zxvf tengine-2.1.2.tar.gz

tar zxvf pcre-8.39.tar.gz?

tar zxvf zlib-1.2.8.tar.gz?

tar zxvf openssl-1.0.2h.tar.gz?

tar zxvf LuaJIT-2.0.4.tar.gz?

tar zxvf lua-5.3.3.tar.gz?

tar jxvf jemalloc-4.2.1



#下載nginx的gridfs插件

git clone https://github.com/barakav/gridfs-nginx-plugin.git

cd gridfs-nginx-plugin

git clone https://github.com/eagleas/mongo-c-driver.git

cd mongo-c-driver/

git checkout v0.7.1




#編譯安裝組件

cd lua-5.3.3/

make linux

make install


cd LuaJIT-2.0.4/

make

make install


cd jemalloc-4.2.1/

./configure

make

make install



#設置全局變量

vim /etc/profile

export LUAJIT_LIB=/usr/local/lib

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

export JEMALLOC_INCLUDEDIR=/usr/local/include/jemalloc

export JEMALLOC_LIBDIR=/usr/local/lib


source /etc/profile



#建議安裝目錄

mkdir -p /opt/tengine/dso-path


#編譯安裝tengine

cd /opt/tengine-2.1.2


./configure --prefix=/opt/tengine \

--dso-path=/opt/tengine/dso-path \

--with-rtsig_module \

--with-select_module \

--with-file-aio \

--with-http_v2_module \

--with-http_realip_module \

--with-http_addition_module \

--with-http_geoip_module \

--with-http_sub_module \

--with-http_dav_module \

--with-http_flv_module \

--with-http_mp4_module \

--with-http_dyups_module \

--with-http_gunzip_module \

--with-http_gzip_static_module \

--with-http_auth_request_module \

--with-http_concat_module \

--with-http_sysguard_module \

--with-http_lua_module \

--add-module=../gridfs-nginx-plugin \

--with-pcre=../pcre-8.39 \

--with-zlib=../zlib-1.2.8 \

--with-jemalloc \

--with-openssl=../openssl-1.0.2h \


make

make install


完事抽身去,深藏功與名~~~

轉載于:https://blog.51cto.com/zhusas/1841153

總結

以上是生活随笔為你收集整理的Tengine+LUA+Nginx-GridFS+jemalloc编译安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。