[CentOS7]安装openssl-1.1.1

curl -O https://ftp.openssl.org/source/openssl-1.1.1k.tar.gz \
 && tar xf openssl*.gz \
 && cd openssl* \
 && ./config --prefix=/usr --openssldir=/etc/ssl zlib-dynamic \
 && make -j$(nproc) \
 && make install

cat >> /etc/profile.d/openssl.sh <<EOF
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
EOF

source /etc/profile.d/openssl.sh &&\
openssl version

OpenSSL 1.1.1k  25 Mar 2021

posted @ 2024-01-19 11:23  LeoShi2020  阅读(253)  评论(0编辑  收藏  举报