#载最新的 PCRE 源码包,使用下面命令下载编译和安装 PCRE 包:
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
cd /opt/soft
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz·
tar -zxvf pcre-8.40.tar.gz
cd pcre-8.40
./configure
make
make install
2.安装zlib库
cd /opt/soft
wget http://zlib.net/zlib-1.2.10.tar.gz
tar -zxvf zlib-1.2.10.tar.gz
cd zlib-1.2.10
./configure
make
make install
3.安装Nginx
cd /opt/soft
wget http://nginx.org/download/nginx-1.4.2.tar.gz
tar -zxvf nginx-1.4.2.tar.gz
cd nginx-1.4.2
./configure
make
make install