安装nginx编译所需的lib库 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel yum -y install pcre pcre-devel 查看pcre(正则库)版本 pcre-config --version 进入编译目录 cd /usr/local/src 从官网下载最新的nginx(stable version稳定版) wget http://nginx.org/download/nginx-1.14.0.tar.gz 解压nginx压缩包 tar -zxvf nginx-1