tar -zxvf openssl-1.0.1g.tar.gz && cd openssl-1.0.1g/
./config --shared
make && make install
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
ln -s -f /usr/local/ssl/bin/openssl /usr/bin/
ln -s -f /usr/local/ssl/include/openssl /usr/include/openssl
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig
openssl version
转载于:https://blog.51cto.com/ryan0817/1393483