安装包拷贝到/usr/local/lantu/下
tar -zxvf pcre-8.38.tar.gz
进入目录,./configure --prefix=/usr/local/lantu/pcre/
make & make install
2.安装zlib
同安装pcre
3.安装Nginx
加压后执行 ./configure --prefix=/usr/local/lantu/Nginx --with-pcre=/usr/local/lantu/pcre-8.38 --with-zlib=/usr/local/lantu/zlib-1.2.11
make & make install
检查,进入sbin目录,./Nginx -t
可能先要安装:
yum install -y gcc gcc-c++
Nginx-1.12.1.tar.gz
pcre-8.38.tar.gz
zlib-1.2.11.tar.gz
原文链接:https://www.f2er.com/centos/376191.html