Below, the blacksmith uses a pure version of the system to give everyone a simple upgrade tutorial. Because it is pure version, so some gcc, wget have to be downloaded again. This also gives the novice a better practice opportunity, Daniel do not spray.
First we go to download the OpenSSL package, here it is for the convenience of everyone to download, the blacksmith put the update package in the Baidu Cloud disk share, the need can be directly to download.
Download address: HTTP://PAN.BAIDU.COM/S/1I3FUIPV Download Password: A3VL
One: Install some of the required environments
The code is as follows |
Copy Code |
[Root@localhos/]# yum-y Install gcc-c++
|
Second: Decompression installation
The code is as follows |
Copy Code |
[Root@localhos/]# TAR-ZXVF openssl-1.0.1g.tar.gz
[Root@localhos/]# CD openssl-1.0.1g
[Root@localhos openssl-1.0.1g]#./config
[Root@localhos openssl-1.0.1g]# make && make install
|
The code is as follows |
Copy Code |
[Root@localhos openssl-1.0.1g]# Mv/usr/bin/openssl/usr/bin/openssl.old
[Root@localhos openssl-1.0.1g]# ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl
[Root@localhos openssl-1.0.1g]# ln-s/usr/local/ssl/include/openssl//usr/include/openssl
[Root@localhos openssl-1.0.1g]# echo "/usr/local/ssl/lib/" >>/etc/ld.so.conf
[Root@localhos openssl-1.0.1g]# Ldconfig-v
|
Four: View version validation
[Root@localhos openssl-1.0.1g]# OpenSSL version-a
If you see the version of OpenSSL is 1.0.1g, the version upgrade is successful.
V: frequently Asked questions
Problem: When performing./config, Warning:file ' config ' has modification time 1.6e+05 s in the future
Reason: Generally will only appear in the virtual machine, time is not synchronized, so it is time to sync it!