linux源码编译nginx
# 直接使用yum安装所需要的组件,也可以下载源码安装 [root@localhost local]# yum -y install pcre pcre-devel # 解压文件夹 [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