3、运行configure
cd prce-xxx
./configure
如果运行出错:You need a C++ compiler for C++ support
则需要安装C++编译环境:yum install -y gcc gcc-c++
4、安装和编译prce
make && make install
5、解压nginx
tar -xzvf nginx-xxx
6、运行configure
cd nginx-xxx
./configure
如果运行出错:./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
则需要安装zlib库:yum install zlib-devel
7、安装nginx
make && make install
8、启动nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
启动出错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory