ambari.repo 中的enable=1 和priority=1 是什么意思?

ambari.repo 中的enable=1 和priority=1 是什么意思?

当我这样做时,cat ambari.repo我可以看到最后两行显示 enable=1priority=1。这背后的意义是什么?

答案1

man yum.conf

          enabled  Either  `1'  or  `0'. This tells yum whether or not use
          this repository.

          During depsolving, when choosing the
          best provider among several, yum will respect  the  priority  of
          each  provider's  repository  (note that there are other factors
          which yum considers, which may overweigh the  repository  prior-
          ity).  The  value  is  an integer from 1 to 99, 1 being the most
          preferred repository, and 99 being the least preferred  one.  By
          default all repositories have the priority of 80.

相关内容