具体方法:
--prefix=/usr/local/nginx-1.6.0  
安装好后,nginx的工作目录。
--with-pcre=/root/pcre-8.35  
pcre的源代码目录
 
--with-openssl=/root/openssl-1.0.1  
openssl的源代码目录
 
--with-zlib=/root/zlib-1.2.8  
zlib的源代码目录
 
./configure --prefix=/usr/local/nginx-1.6.0 --with-http_ssl_module --with-ld-opt="-l /usr/local/lib" --with-pcre=/root/pcre-8.35 --with-openssl=/root/openssl-1.0.1 --with-zlib=/root/zlib-1.2.8