zoukankan      html  css  js  c++  java
  • CentOS 安装openssl

    https://blog.csdn.net/ydyang1126/article/details/72902113

    安装环境:
    操作系统:CentOS 7

    OpenSSL Version:openssl-1.0.2f.tar.gz

    OpenSSL地址为http://www.openssl.org/source/openssl-1.0.2f.tar.gz

    1、安装 Openssl:

    [root@localhost openssl-1.0.2f]# wget http://www.openssl.org/source/openssl-1.0.2f.tar.gz
    [root@localhost openssl-1.0.2f]# tar -xzf openssl-1.0.2f.tar.gz
    [root@localhost openssl-1.0.2f]# cd openssl-1.0.2f
    [root@localhost openssl-1.0.2f]# mkdir /usr/local/openssl
    [root@localhost openssl-1.0.2f]# ./config --prefix=/usr/local/openssl
    [root@localhost openssl-1.0.2f]# make
    [root@localhost openssl-1.0.2f]# make install
    1
    2
    3
    4
    5
    6
    7
    2、查看路径

    # which openssl
    /usr/local/openssl/bin/openssl
    1
    2
    为了使用方便,以及以后版本更新方便,可以创建软连接,如下:

    # ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
    1
    3、执行以下命令

    [root@localhost openssl-1.0.2f]# cd /usr/local/openssl

    [root@localhost openssl]# ldd /usr/local/openssl/bin/openssl
    linux-vdso.so.1 => (0x00007ffc63975000)
    libssl.so.1.1 => not found
    libcrypto.so.1.1 => not found
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f8d9da0f000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8d9d7f3000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f8d9d431000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f8d9dc28000)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    安装OK

    7、查看版本

    # openssl version
    /usr/local/openssl/bin/openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
    1
    2
    找不到动态库libssl.so.1.1,小问题,执行如下命令:

    # vim /etc/ld.so.conf
    1
    在最后追加一行:
    /usr/local/openssl/lib
    然后执行:

    # ldconfig /etc/ld.so.conf
    # openssl version
    OpenSSL 1.1.0f 25 May 2017
    1
    2
    3
    done.
    ---------------------
    作者:Moxiao__墨箫
    来源:CSDN
    原文:https://blog.csdn.net/ydyang1126/article/details/72902113
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    RabbitMq 集群配置
    获取 input 单选框和多选框的值
    js 获取 通过 ”?“ 或者 ”&“ url 传过来参数值
    Java 对文件的读取操作
    java 链接jdbc
    了解EBP寄存器
    节后后遗症
    [转]web service实现原理与异步调用
    Javascript实现无刷新分页
    邮件发送
  • 原文地址:https://www.cnblogs.com/shmily3929/p/9965327.html
Copyright © 2011-2022 走看看