1. 从http://nginx.org/下载nginx
2. tar zxvf nginx-*.tar.gz
3. ./configure --prefix=/usr/local/nginx --with-openssl=/usr/include --with-pcre=/usr/local/pcre-8.33
其中:--with-pcre=/usr/local/pcre-8.33为pcre的源码目录,不是安装目录,pcre可以从http://www.pcre.org/下载
./configure --prefix=/usr/local/pcre-7.8 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre
4. make & make install
ps -ef|grep nginx