Centos5.4下生级openssl的方法 --- 转

Centos5.4下生级openssl的方法 --- 转

wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
cd openssl-1.0.0
yum -y install zlib
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared
#./config -fPIC --prefix=/usr/local/ssl enable-shared
#./config shared zlib
make
make install
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
mv /usr/lib/libssl.so /usr/lib/libssl.so.bak
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
ln -s /usr/local/ssl/lib/libssl.so.1.0.0 /usr/lib/libssl.so
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
/sbin/ldconfig -v
/usr/bin/openssl version

你可能感兴趣的:(Centos5.4下生级openssl的方法 --- 转)