1、安装pcre
unzip pcre-8.02.zip
./configure
make && make install
2、安装openssl
tar zxvf ./openssl-1.0.0d.tar.gz
cd ./openssl-1.0.0d
./config --prefix=/usr/local/ --openssldir=/usr/local/openssl-1.0.0d shared zlib-dynamic enable-camellia enable-tlsext
make
make install
3、安装nginx
tar xvf nginx-1.0.0.tar
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module \
--with-pcre=../pcre-8.02 --with-openssl=../openssl-1.0.0d
make && make install