源码编译nginx
[root@localhost local]# yum -y install pcre pcre-devel
#解压nginx源码包
[root@localhost local]# tar -zxvf /tmp/nginx-1.11.3.tar.gz
[root@localhost local]# cd nginx-1.11.3/
[root@localhost nginx-1.11.3]# ./configure --prefix=/usr/local/nginx/
[root@localhost nginx-1.11.3]# make
[root@localhost nginx-1.11.3]# make install