标签:configure get install 环境 pat 配置环境变量 config down nginx
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
标签:configure get install 环境 pat 配置环境变量 config down nginx
原文地址:http://www.cnblogs.com/shijiu520/p/6947381.html