centos6-openssl1.1.0e安装

前端之家收集整理的这篇文章主要介绍了centos6-openssl1.1.0e安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。




下载地址:http://www.openssl.org/source/


# cd /usr/local/src/

# wget http://www.openssl.org/source/openssl-1.1.0e.tar.gz


# tar xfopenssl-1.1.0e.tar.gz

# cd /openssl-1.1.0e

# ./configsharedzlib--prefix=/usr/local/openssl&&make&&makeinstall

# ./config -t

# make depend

# cd /usr/local

# ln -s openssl ssl

# echo "/usr/local/openssl/lib" >>/etc/ld.so.conf

# ldconfig

# vi /etc/profile

exportOPENSSL=/usr/local/openssl/bin

exportPATH=$OPENSSL:$PATH:$HOME/bin


# source /etc/profile

# mv /usr/bin/openssl /usr/bin/openssl.old

# mv /usr/include/openssl /usr/include/openssl.old

# ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl

# ln -s /usr/local/openssl/include/openssl /usr/include/openssl

# ln -sf /usr/local/openssl/lib/libcrypto.so.1.0.0 /lib/libcrypto.so.6

# ldconfig -v


# ldd/usr/local/openssl/bin/openssl

会出现类似如下信息:

Linux-gate.so.1 => (0x0079f000)
libssl.so.1.1 => /usr/local/openssl/lib/libssl.so.1.1 (0x002a8000)
libcrypto.so.1.1 => /usr/local/openssl/lib/libcrypto.so.1.1 (0x00306000)
libz.so.1 => /lib/libz.so.1 (0x00775000)
libdl.so.2 => /lib/libdl.so.2 (0x00725000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0072c000)
libc.so.6 => /lib/libc.so.6 (0x00593000)
/lib/ld-linux.so.2 (0x0056d000)


# whichopenssl

/usr/local/openssl/bin/openssl

14、依次如下执行:

[root@localhost openssl-1.1.0e]# ldd/usr/local/openssl/bin/openssl

会出现类似如下信息:

Linux-gate.so.1 => (0x0079f000)
libssl.so.1.1 => /usr/local/openssl/lib/libssl.so.1.1 (0x002a8000)
libcrypto.so.1.1 => /usr/local/openssl/lib/libcrypto.so.1.1 (0x00306000)
libz.so.1 => /lib/libz.so.1 (0x00775000)
libdl.so.2 => /lib/libdl.so.2 (0x00725000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0072c000)
libc.so.6 => /lib/libc.so.6 (0x00593000)
/lib/ld-linux.so.2 (0x0056d000)

# whichopenssl

/usr/local/openssl/bin/openssl

# openssl version -a

原文链接:https://www.f2er.com/centos/378196.html

猜你在找的CentOS相关文章