您的位置:首页 > 运维架构 > Nginx

compile nginx on linux

2014-02-27 12:36 302 查看
#!/bin/bash

CUR_ROOT=`pwd`

echo "cur=$CUR_ROOT"

echo "configuring nginx..."

${CUR_ROOT}/auto/configure --prefix=/usr/local/nginx \

--sbin-path=/usr/sbin \

--conf-path=/etc/nginx/nginx.conf \

--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 \

--builddir=${CUR_ROOT}/src \

--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-http_gunzip_module --with-http_gzip_static_module \

--with-http_auth_request_module --with-http_stub_status_module \

--with-http_sub_module --with-http_flv_module \

--with-http_mp4_module --with-http_dav_module --with-ipv6 \

--with-debug

# --with-openssl=/home/me/workspace/avc/openssl \

# --with-http_ssl_module \

#echo "Compiling nginx clean..."

#make clean

#echo "Compiling nginx all..."

make -j4 || exit 1

#echo "Compiling nginx install..."

make install || exit 1


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: