Centos7离线安装nginx

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;

离线安装包地址:

https://download.csdn.net/download/qq_39187822/12409175

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章