标签:centos htm pwd rom module usr linux 安装 license ror
本分类下有一个环境一键安装.那这背后发生了什么呢?咱们手动使用源码进行安装.
1.首先保证有一个能联网的centos.
2.百度 ningx 官网 点download http://nginx.org/en/download.html 找到最新版的nginx下载地址. 发贴时最新的是1.12 http://nginx.org/download/nginx-1.12.0.tar.gz
3.进行centos 执行命令
#安装wget
yum
install
wget -y
#安装gcc和c++编译器
yum
install
gcc gcc-c++ -y
mkdir
/temp
;
cd
/temp
;
wget http:
//nginx
.org
/download/nginx-1
.12.0.
tar
.gz
tar
zxvf .
/nginx-1
.12.0.
tar
.gz
cd
/temp/nginx-1
.12.0
.
/configure
--prefix=
/usr/local/nginx-mytest
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
mkdir
/temp
;
cd
/temp
;
wget
ftp
:
//ftp
.csx.cam.ac.uk
/pub/software/programming/pcre/pcre-8
.39.
tar
.gz
tar
zxvf pcre-8.39.
tar
.gz
cd
/temp/nginx-1
.12.0
.
/configure
--prefix=
/usr/local/nginx-mytest
--with-pcre=
/temp/pcre-8
.39
make
&&
make
install
标签:centos htm pwd rom module usr linux 安装 license ror
原文地址:http://www.cnblogs.com/zhangxuu/p/7001184.html