先把tar.gz文件拷进ubuntu的文件夹,我放到了home/用户名/Documents 下
cd 进去以后,
tar -zxvf nginx-1.7.10.tar.gz :解压文件
解压后ls .
发现多了nginx-1.7.10文件夹,
cd nginx-1.7.10
里面有auto,configure html等等,
./configure --prefix=/home/cloud6/nginx
结果出现错误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.
需要安装PCRE库
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
安装时提示:
configure: error: You need a C++ compiler for C++ support.
Oh my god!