[root@localhost ~]# tar -zxvf nginx-1.20.2.tar.gz
[root@localhost ~]# cd nginx-1.20.2
[root@localhost nginx-1.20.2]# ./configure --prefix=/usr/local/nginx/
[root@localhost nginx-1.20.2]# make
安装进行目录测试
[root@localhost nginx-1.20.2]# make install
将之前的文件重命名已经备份
升级
[root@localhost nginx-1.20.2]# make upgrade