------仅作为自己学习留存------
CENTOS 7.6/NGINX1.14.0/MYSQL8/PHP7.2
安装编译器
[root@VM-0-16-centos home]# yum install gcc gcc-c++
软件下载路径---自己服务器
/home/lnmp
zlib源码安装
[root@VM-0-16-centos lnmp]# wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.11.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf zlib-1.2.11.tar.gz
[root@VM-0-16-centos lnmp]# cd zlib-1.2.11
[root@VM-0-16-centos zlib-1.2.11]# ./configure
[root@VM-0-16-centos zlib-1.2.11]# make && make install
pcre安装
[root@VM-0-16-centos lnmp]# wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf pcre-8.42.tar.gz
[root@VM-0-16-centos lnmp]# cd pcre-8.42/
[root@VM-0-16-centos pcre-8.42]# ./configure
[root@VM-0-16-centos pcre-8.42]# make && make install
[root@VM-0-16-centos pcre-8.42]#
[root@VM-0-16-centos lnmp]# pcre-config --version
8.42
OpenSSL安装
[root@VM-0-16-centos lnmp]#yum groupinstall "Development Tools"
[root@VM-0-16-centos lnmp]# wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf openssl-1.1.1k.tar.gz
[root@VM-0-16-centos lnmp]# cd openssl-1.1.1k/
[root@VM-0-16-centos openssl-1.1.1k]# ./config --prefix=/usr/local/openssl --openssldir=/usr/local/ssl
[root@VM-0-16-centos openssl-1.1.1k]# make -j 2
[root@VM-0-16-centos openssl-1.1.1k]# make install
导出库文件
[oot@VM-0-16-centos openssl-1.1.1k]# echo /usr/local/openssl/lib >> /etc/ld.so.conf.d/openssl.conf
[oot@VM-0-16-centos openssl-1.1.1k]# ldconfig
# "检测版本信息"
[oot@VM-0-16-centos ope