#!/bin/bash
# Install Openssl-1.0.1h
cd /opt/openssl && tar zxvf openssl-1.0.1h.tar.gz && cd openssl-1.0.1h && ./config --prefix=/usr/local/openssl shared zlib && make && make install
# Remove Old Version Openssl.OFF
mv /usr/bin/openssl /usr/bin/openssl.OFF && mv /usr/include/openssl /usr/include/openssl.OFF
# Create Openssl Soft Link
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl && ln -s /usr/local/openssl/include/openssl /usr/include/openssl
# Refresh System Dynamic Library
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf && ldconfig
阅读(2312) | 评论(0) | 转发(0) |