nginx下载网站 http://nginx.org/ http://nginx.org/en/download.html > http://nginx.org/download/nginx-1.15.8.tar.gz
cd nginx-1.15.8
./configure --sbin-path=/usr/local/nginx/nginx
–conf-path=/usr/local/nginx/nginx.conf
–pid-path=/usr/local/nginx/nginx.pid
–with-http_ssl_module
–with-pcre=/root/pcre-8.37 #pcre指定源程序 是为了开启重写 rewrite
–with-zlib=/usr/local/zlib-1.2.8 #zlib指定编译的路径 是为了开启gzip
–with-openssl=/usr/local/openssl-1.0.2q #openssl也制定编译后的路径
pcre支持包 https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.gz 之前下载最新版的pere2报错,换成pcre版本后不报错
make[1]: *** [/usr/local/pcre//Makefile] Error 127 --with-pcre//Makefile
指向源程序目录
make[1]: **