Centos7離線安裝nginx
1.將包解壓後傳輸到linux服務器上
2.進入gcc包和gcc-c++分別運行
rpm -Uvh *.rpm --nodeps --force
3.安裝pcre:
tar -zxvf pcre-8.00.tar.gz
./configure
make
make install
4.安裝openssl
tar -zxvf openssl-fips-2.0.16.tar.gz
./configure
make
make install
注意,這個包安裝的時候一定要進文件夾看清楚文件的名稱大小寫,如果上面命令的不行,就換config;
5.安裝zlib:
tar -zxvf zlib-1.2.11.tar.gz
./configure
make
make install
6.安裝nginx
tar -zxvf nginx-1.17.8.tar.gz
./configure
make
make install
執行 nginx命令:
cd /usr/local/nginx/sbin
./nginx;
離線安裝包地址: