如何在CentOS 6.5中升级OpenSSL?

我用过这些命令,但什么都没发生:

 cd /usr/src
 wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
 tar -zxf openssl-1.0.1g.tar.gz
 cd openssl-1.0.1g
 ./config
 make
 make test
 make install
 cd /usr/src
 rm -rf openssl-1.0.1g.tar.gz
 rm -rf openssl-1.0.1g

使用这个命令后,我得到了旧版本

openssl version

推荐答案

./config --prefix=/usr --openssldir=/usr/local/openssl shared

请try 此配置行以覆盖默认设置.在默认情况下,当您取消前缀时,它会安装为prefix/usr/local/ssl.您可能有"/usr/local/ssl/bin/openssl",而不是覆盖/usr/bin/openssl.也可以使用/usr/local作为前缀,但如果路径上还没有/usr/local,则需要相应地调整路径.以下是安装文档:

  $ ./config
  $ make
  $ make test
  $ make install

 [If any of these steps fails, see section Installation in Detail below.]

This will build and install OpenSSL in the default location, which is (for
historical reasons) /usr/local/ssl. If you want to install it anywhere else,
run config like this:

  $ ./config --prefix=/usr/local --openssldir=/usr/local/openssl

https://github.com/openssl/openssl/blob/master/INSTALL

Linux相关问答推荐

使用Bash从文件名中删除日期名称

Aarch64在Linux上是否有红色区域,如果有,是16个字节还是128个字节?

如何在带模式的文件频繁更改的管道中使用grep-f带模式的文件?

如何正确Forking 并完成进程以避免 EAGAIN 错误

bind() 错误 98 - 地址已在使用中

如果列小于 X,linux 合并行

如何使用 Golang 清除终端中的最后一行

使用 bash 命令将文件从子文件夹复制到另一个

使用 AWK 过滤 Linux 输出

Bash shift 改变了关联数组的期望值

当接收端未从套接字读取时,通过 Unix 套接字发送的消息会发生什么情况?

如何从linux调度程序中屏蔽一个cpu(防止它调度线程到那个cpu上)?

在 puppet 中管理 linux 的用户密码

如何在makefile中包含静态库

无法覆盖符号链接 RedHat Linux

更改核心转储的位置

如何让 cron 每N分钟运行一次,其中 n % 5 == 1?

如何使用终端打开-虚线文件名?

什么是 linux 脚本中的 start-stop-daemon?

仅当文件存在于 shell 脚本中时才移动