[root@nginx ~]
# wget https://www.openssl.org/source/openssl-1.1.0g.tar.gz
[root@nginx ~]
# tar -zvxf openssl-1.1.0g.tar.gz
[root@nginx ~]
# cd openssl-1.1.0g
[root@nginx openssl-1.1.0g]
# ./config shared zlib
[root@nginx openssl-1.1.0g]
# make
[root@nginx openssl-1.1.0g]
# make install
[root@nginx openssl-1.1.0g]
# mv /usr/bin/openssl /usr/bin/openssl.bak
[root@nginx openssl-1.1.0g]
# mv /usr/include/openssl /usr/include/openssl.bak
[root@nginx openssl-1.1.0g]
# find / -name openssl
[root@nginx openssl-1.1.0g]
# ln -s /usr/local/bin/openssl /usr/bin/openssl
[root@nginx openssl-1.1.0g]
# ln -s /usr/local/include/openssl /usr/include/openssl
root@nginx openssl-1.1.0g]
# echo "/usr/local/lib64/" >> /etc/ld.so.conf
[root@nginx openssl-1.1.0g]
# ldconfig
[root@nginx openssl-1.1.0g]
# openssl version -a