1、在/etc/yum.repos.d/下创建nginx.repo

[root@localhost ~]# vi /etc/yum.repos.d/nginx.repo
[nginx] 
name=nginx repo 
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0 
enabled=1

  

posted on 2022-05-19 16:08  草根920  阅读(95)  评论(0编辑  收藏  举报