linux 上安装 OpenSSL
netnr 2018-09-05
# 环境
yum -y install gcc gcc-c++ autoconf automake libtool make cmake
yum -y install zlib zlib-devel openssl openssl-devel pcre-devel

wget https://www.openssl.org/source/openssl-1.1.1.tar.gz    # 安装包下载地址 https://www.openssl.org/source/
tar -xzf openssl-1.1.1.tar.gz # 解压
cd openssl-1.1.1 # 进入安装目录
mkdir /usr/local/openssl # 创建文件夹

# 卸载升级
./config --prefix=/usr/local --openssldir=/usr/local/ssl
make -j && make install -j
./config shared --prefix=/usr/local --openssldir=/usr/local/ssl
make clean
make -j && make install -j

# error libssl.so
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

which openssl   # 查看路径

openssl version -a  # 版本

# help
https://blog.csdn.net/skymanwww/article/details/62436858
https://blog.csdn.net/ydyang1126/article/details/72902113

#直接安装/更新(版本可能不是最新)
yum install openssl
yum update openssl
登录写评论