To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=0
enabled=1

 

最最後...記得  $releasever 要改成現在的版本   ex: 7 

http://nginx.org/packages/rhel/7/x86_64/repodata/repomd.xml

 

arrow
arrow
    文章標籤
    linux nginx
    全站熱搜

    阿貴貴 發表在 痞客邦 留言(0) 人氣()