centos无管理员权限安装openssl

centos无管理员权限安装openssl

  • 安装openssl
  • 修改环境变量

安装openssl

  1. mkdir /local/ssl #创建安装目录
    mkdir /local/ssl_download # 创建下载目录
  2. cd /local/ssl_download
    wget www.openssl.org/source/openssl-1.0.2d.tar.gz # 下载压缩包
    tar xf openssl-1.0.2d.tar.gz # 解压缩
  3. cd openssl-1.0.2d
    ./config --prefix=/local/ssl # 设置安装目录
  4. make
    make install # 安装

修改环境变量

  1. vim ~/.bashrc
  2. export PATH="/local/ssl/bin:$PATH"
  3. export LIBRARY_PATH="/local/ssl/lib:$LIBRARY_PATH"
  4. export LD_LIBRARY_PATH="/local/ssl/lib:$LD_LIBRARY_PATH"

你可能感兴趣的:(linux软件安装,linux)