1. yum源:
    http://file.job520.net/linux/yum-repository/nginx.repo
    # https://nginx.org/en/linux_packages.html#RHEL-CentOS
  2. 移动文件到yum仓库:
    mv nginx.repo /etc/yum.repo.d/
  3. 生成缓存文件:
    yum clean all
    yum makecache
  4. 安装:
    yum -y install nginx
文档更新时间: 2020-08-07 18:49   作者:lee