鏈接:https://pan.baidu.com/s/1gggq1p-uZSmAw49o5xfl4g
提取碼:ypoj
復制這段內容后打開百度網盤手機App,操作更方便哦
1、安裝pcre
解壓:tar -zxvf pcre2-10.35.tar.gz
進入解壓目錄:cd pcre2-10.35
配置: ./configure
編譯: make
安裝:make install
2、安裝OpenSSL
解壓:tar -zxvf openssl-1.1.1g.tar.gz
進入解壓目錄:cd openssl-1.1.1g
配置: ./config
編譯: make
安裝:make install
如果輸入openssl version
在root用戶下執行:
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/
local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
3、安裝zlib
解壓:tar -zxvf zlib-1.2.11.tar.gz
進入解壓目錄:cd zlib-1.2.11
配置: ./configure
編譯: make
安裝:make install
4、安裝nginx-1.16.1.tar.gz
解壓:tar -zxvf nginx-1.16.1.tar.gz
進入解壓目錄:cd nginx-1.16.1
配置: ./configure(如果不行可以忽略依賴 ./configure --without-http_rewrite_module)
編譯: make
安裝:make install