sudo apt-get install git-core
cd /opt/build
sudo git clone git://github.com/mdirolf/nginx-gridfs.git
cd nginx-gridfs
sudo git submodule init
sudo git submodule update
cd nginx-0.8.35/
sudo ./configure --conf-path=/etc/nginx/nginx.conf \
--user=www-data \
--group=www-data \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--with-sha1=/usr/include/openssl \
--add-module=${BUILD_DIR}/gnosek-nginx-upstream-fair-2131c73 \
--add-module=${BUILD_DIR}/ngx_cache_purge-1.1 \
--add-module=${BUILD_DIR}/nginx-gridfs \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-http_realip_module
阅读(218) | 评论(0) | 转发(0) |