cd /usr/src wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz -O openssl-1.0.1g.tar.gz tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config shared zlib make make test make install 如果安装失败,先安装zlib库,再安装openssl 查看openssl的版本 openssl version 若