centos下从源码安装openssl
cd /usr/src
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz -O openssl-1.0.1g.tar.gz
tar -zxf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
./config shared zlib
make
make test
make install
openssl version
若还是旧版的话,执行下面的命令:
mv /usr/bin/openssl /root/
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
再查看版本
# openssl version
OpenSSL 1.0.1g 7 Apr 2014
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz -O openssl-1.0.1g.tar.gz
tar -zxf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
./config shared zlib
make
make test
make install
如果安装失败,先安装zlib库,再安装openssl
查看openssl的版本openssl version
若还是旧版的话,执行下面的命令:
mv /usr/bin/openssl /root/
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
再查看版本
# openssl version
OpenSSL 1.0.1g 7 Apr 2014