- 下载:http://nginx.org/en/download.html
- 解压:tar -zxvf nginx-1.12.2.tar
- ./configure
- 根据错误提示安装以下文件
- yum -y install gcc gcc-c++ autoconf automake
- yum -y install pcre pcre-devel
- yum -y install zlib zlib-devel
- ./configure成功后
- make
- make install
- 查看是否安装完成 cd /usr/local目录下是否有nginx