安装前先添加epel源并更新系统
树莓派安装centos7.9(armv7hl)以及宝塔linux面板. 2023-2-16_mklpo147的博客-CSDN博客
然后安装依赖
yum install -y openssl11 openssl11-devel gperftools-libs redhat-indexhtml nginx-filesystem
再安装nginx1.20
rpm -ivh https://armv7.dev.centos.org/repodir/epel-pass-1/nginx/1.20.1-10.el7/armv7hl/nginx-1.20.1-10.el7.armv7hl.rpm