`centos 7.8`解压包安装 `nginx`-1.20.1
centos 7.8
解压包安装 nginx
-1.20.1
-
先安装
gcc
编译环境yum install gcc
-
安装
nginx
所需依赖-
安装
pcre
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre-devel-8.32-17.el7.x86_64.rpm yum install pcre-devel-8.32-17.el7.x86_64.rpm -y
-
安装
http gzip
依赖库yum install zlib-devel
-
-
执行编译命令
./configure
出现下图,表示编译成功
-
执行安装
make && make install
出现下图表示安装成功