wget http://nginx.org/download/nginx-1.13.1.tar.gz
nginx 依赖 pcre 库,要先安装pcre,因为nginx 要在rewrite 要解析正则表达式,
pcre 是正则解析库
yum -y install pcre pcre-devel
tar -zxvf nginx-1.10.3.tar.gz
cd nginx-1.10.3
./configure --prefix=/install/nginx
make && make install
配置环境变量
echo 'PATH=/install/nginx/sbin/:$path' >> /etc/profile
source /etc/profile