依赖组件
nginx 编译安装依赖pcre, zlib和openssl.
编译部署 pcre
wget https://onboardcloud.dl.sourceforge.net/project/pcre/pcre/8.44/pcre-8.44.tar.gz
tar -zxf pcre-8.44.tar.gz cd pcre-8.44 ./configure sudo make && make install
编译部署 zlib
wget https://codeload.github.com/madler/zlib/tar.gz/refs/tags/v1.2.11
tar -zxf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure sudo make && make install
编译部署 openssl
wget http://www.openssl.org/source/openssl-1.1.1g.tar.gz tar -zxf openssl-1.1.1g.tar.gz cd openssl-1.1.1g ./Configure darwin64-x86_64-cc --prefix=/usr sudo make && make install
编译部署 nginx
wget https://nginx.org/download/nginx-1.19.10.tar.gz tar zxf nginx-1.19.10.tar.gz cd nginx-1.19.10
./configure –sbin-path=/usr/local/nginx/nginx –conf-path=/usr/local/nginx/nginx.conf –pid-path=/usr/local/nginx/nginx.pid –with-pcre=…/pcre-8.44 –with-zlib=…/zlib-1.2.11 –with-http_ssl_module –with-stream –with-debug
sudo make && make install
|