First, install the compilation tools and libraries
[root@localhost src]# yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
Second, we must first install PCRE PCRE role is to support Nginx Rewrite function.
1, the selected source directory
[root@localhost src]#cd /usr/local/src
2. Download
[root@localhost src]#wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz
3, extract the installation package
[root@localhost src]#tar -zxvf pcre-8.40.tar.gz
4, enter the installation package directory
[root@localhost src]#cd pcre-8.40
5, compile and install
[root@localhost src]#./configure
[root@localhost src]#make && make install
6, see pcre version
[root@localhost src]#pcre-config --version