-
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
#########
openssl安全等级检测网站:
https://www.ssllabs.com/ssltest/index.html
本文转自Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/1620103,如需转载请自行联系原作者