1.设置nginx仓库
vim/etc/yum.repos.d/nginx.repo
[nginx-stable]name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.keymodule_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/nginx_signing.keymodule_hotfixes=true
2.安装
yuminstallnginx-y
标签:signing,Centos,mainline,repo,nginx,yum,org From: https://www.cnblogs.com/lfxx/p/17298989.html