tar -zxvf openssl-1.0.1p.tar.gz
cd openssl-1.0.1p
./config --prefix=/usr/local/openssl
make
make install
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
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
openssl version -a
转载于:https://my.oschina.net/ion/blog/507864