//下载
wget http://nginx.org/download/nginx-1.7.6.tar.gz
tar -xzvf nginx-1.7.6.tar.gz
http://blog.csdn.net/dyllove98/article/details/8892509
//安装gcc
setup-x86_64.exe -q -P make
setup-x86_64.exe -q -P gcc-g++
//zlib
http://www.zlib.net/
[iyunv@localhost mrms]# tar -zxvf zlib-1.2.7.tar.gz
[iyunv@localhost mrms]# cd zlib-1.2.7
[iyunv@localhost zlib-1.2.7]# ./configure
[iyunv@localhost zlib-1.2.7]# make
[iyunv@localhost zlib-1.2.7]# make install
//pcre
http://www.pcre.org/
手动下载安装
[iyunv@localhost mrms]# tar -zxvf pcre-8.21.tar.gz
[iyunv@localhost mrms]# cd pcre-8.21
[iyunv@localhost pcre-8.21]# ./configure
[iyunv@localhost pcre-8.21]# make
[iyunv@localhost pcre-8.21]# make install
//http://www.openssl.org/source/
//安装
cd nginx-1.7.6
$ ./configure --with-pcre=../pcre-8.36 --with-zlib=../zlib-1.2.8
checking for OS
+ CYGWIN_NT-6.1 1.7.32(0.274/5/3) x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.8.3 (GCC)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... not found
checking for CYGWIN_NT-6.1 specific features
checking for nobody group ... not found
checkin