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
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
相关文章推荐
- Linux ARM Cross Compile On Intel x86
- the instructuion of ARMLinux kernel Compile
- Zynq --- SDK - Cannot compile ARM application on Windows 7 64-bit or Linux 64-bit OS
- On Rapsberry Pi, Using Archlinux to build LNMP, linux, Nginx, MySQL, PHP
- Compile for Windows on Linux(交叉编译,在Linux下编译Windows程序),以OpenSSL为例
- Compile, Install, Run Linux Apps on Android
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04
- Install LEMP (Linux, Nginx, MySQL 5.5.29, PHP 5.4.11) on RHEL/CentOS 5-6 & Fedora 18-12
- linux kernel stable compile on ubuntu
- How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7
- How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7
- Nginx+PHP+MySql, both on Windows & Linux
- QtCreator on Windows to Cross Compile for Linux ARM with CodeSourcery Toolchain
- arm-linux-gcc compile the cross-platform mpich2 on ubuntu
- something about Compile and Link on Embedded Linux
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- Compile the latest Kernel(linux-3.1-rc4) On Ubuntu Plateform
- Compile my helloworld cpp program on Ubuntu linux
- Install Nginx MySQL PHP on Oracle Linux 6.5
- [C++] Build Shared libraries with GCC on Linux ---gcc is actually for compile C