1、perl安装:安全
一、下载并解压软件:tar zxvf perl-5.24.0.tar.gzide
二、运行./configure.gnu -help查看帮助,运行./configure.gnu -des -Dprefix=/usr/local/perl -Dusethreads -Uversiononly设置源码spa
三、编译及安装 make&make installblog
四、备份旧perl,替换新perlip
mv /usr/bin/perl /usr/bin/perl.bakssl
ln -s /usr/local/perl/bin/perl /usr/bin/perl源码
五、查看perl版本及位置openssl
which is perl;whereis perl;perl -vit
--------------------------------------------------------------------------------------------------------------------------------io
2、openssl 安装:
一、下载并解压软件:tar zxvf openssl-1.1.0b.tar.gz
二、编译并安装
# ./config
# make&make install ----make以后,可用make test检查编译是否正确
三、备份旧openssl,替换新openssl
# mv /usr/bin/openssl /usr/bin/openssl_bak
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
四、查看openssl版本及位置
which is openssl;whereis openssl;openssl version
--------------------------------------------------------------------------------------------------------------------------------
tips 1:
perl:通常,“Perl”是指语言自己,而“perl”指程序运行的解释器
openssl:OpenSSL是一个开源项目,为传输层安全(TLS)和安全套接字层(SSL)协议。它也是一个通用的密码库。
OpenSSL is an open source project that provides a toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.It is also a general-purpose cryptography library.
tips 2:
环境变量:优先搜寻前面目录,使用前面目录的软件。
软连接:ln -s