1.下載
wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
2.解壓
3.安裝
tarzxf openssl-1.0.2h.tar.gzcdopenssl-1.0.2h
./configshared zlib
make
make
install
mv
/usr/bin/openssl
/usr/bin/openssl
.bak
mv
/usr/include/openssl
/usr/include/openssl
.bak
ln
-s
/usr/local/ssl/bin/openssl
/usr/bin/openssl
ln
-s
/usr/local/ssl/include/openssl
/usr/include/openssl
echo
「
/usr/local/ssl/lib
」 >>
/etc/ld
.so.conf
ldconfig -
v
4.檢測安裝是否成功
openssl version -a
參考網址html