CentOS 7编译openssl

# 编译安装zlib库
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure --prefix=/usr/local make && make install && make clean # 编译安装openssl
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2k.tar.gz -O openssl-1.0.2k.tar.gz --no-check-certificate
tar -zxvf OpenSSL_1_0_2k.tar.gz
cd openssl-OpenSSL_1_0_2k .
/config enable-shared --prefix=/usr/local/openssl/ --openssldir=/usr/local/ssl/make && make test && make install && make clean

 

posted @ 2018-07-09 03:29  EasonJim  阅读(2249)  评论(0编辑  收藏  举报