tar xzf openssl-1.0.1l.tar.gz
./config --prefix=/usr/local/openssl
make && make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
echo "/usr/local/openssl/lib">>/etc/ld.so.conf
ldconfig -v
openssl version -a
tar xzf nginx-1.4.7.tar.gz
cd nginx-1.4.7
./configure \
--user="himalayas" \
--group="himalayas" \
--prefix=/usr/local/webserver/nginx \
--with-pcre \
--with-google_perftools_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-http_ssl_module \
--with-http_spdy_module
--with-openssl=/home/sunhs/openssl-1.0.1l
#openssl 源码目录
make&&make install
原文:http://tenderrain.blog.51cto.com/9202912/1620103