compile nginx on linux

来源:互联网 发布:阿玛拉王国捏脸数据 编辑:程序博客网 时间:2024/06/04 08:43




#!/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


0 0