【Linux】OpenSSL 安装

OpenSSL 简介

  OpenSSL 是一个安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用。

OpenSSL 安装

  环境:Linux(CentOS 7.4)

  1、下载,官网:https://www.openssl.org/,本例使用版本:openssl-1.1.0i.tar.gz

  2、解压:tar -zxvf openssl-1.1.0i.tar.gz

  3、进入解压目录,配置ruby安装参数,

    命令:./config --prefix=/data/soft/openssl-1.1.0

    命令:./config -t

  4、编译,命令:make

  5、安装,命令:make install

  6、添加到系统配置

    创建文件,命令:vim /etc/ld.so.conf.d/openssl.conf

    填入内容(为zlib的安装路径):/data/soft/openssl-1.1.0

  7、加载配置,执行命令:ldconfig

    经过上述步骤,就完成了zlib安装!

猜你喜欢

转载自www.cnblogs.com/h--d/p/9509096.html