1.安装nginx依赖的库pcre 下载地址:http://sourceforge.net/projects/pcre/ 2.解压pcre zip解压方式:unzip pcre-xxx tar解压方式:tar -xzvf pcre-xxx 3.执行configure cd prce-xxx ./configure 假设执行出错:You need a C++ compiler for C++ support…
linux系统为Centos6.5 64位 nginx为1.4.7 从http://nginx.org/download/上下载相应的版本 解压 tar -zxvf nginx-1.4.7.tar.gz 设置一下配置信息: ./configure --prefix=/usr/local/nginx (如果不执行此命令,make的时候可能会报错[make:No targets specified and no makefile found stop]) make编译 make install安装…