1. 程式人生 > >centos nginx-1.10.3 安裝

centos nginx-1.10.3 安裝

依賴 centos .org fix download 配置 表達式 amp zxvf

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

centos nginx-1.10.3 安裝