In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "Linux local yum source configuration", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the configuration of Linux local yum source"!
1. Configuration of ordinary Yum sources
# cd / etc/yum.repos.d
# vi local.repo-this file must be suffixed with .repo and have an arbitrary name
Add the following:
[local]-there must be square brackets. The content is the name of the yum source.
Name=local-serves as a hint
Baseurl= file:///RHEL6.6/RHEL-6.6\ Server.x86_64-specify the location of the yum source repository
Enabled=1-there are 1 and 0 choices. 1 means enabled and 0 means disabled.
Gpgcheck=1-there are 1 and 0 options to indicate whether or not to perform a gpg (GNU Private Guard) check to determine that the source of the rpm packet is valid and secure (can be omitted)
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release-specify gpgkey
Once configured, use the yum list command to check whether the configuration is successful.
*
If the following warning appears during yum install:
Warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Indicates that the yum source does not import the key and prompts you to say NOKEY.
At this point, import the key, and you can.
# rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-*
*
2. Yum source configured in Cluster environment:
[rhel6_Server]
Name=Red Hat Enterprise Linux 6 server
Baseurl= file:///rhel6/Server
# baseurl= ftp://172.16.0.117/pub/Server
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[HighAvailability]
Name=VT
Baseurl= file:///rhel6/HighAvailability
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[LoadBalancer]
Name=cluster
Baseurl= file:///rhel6/LoadBalancer
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ResilientStorage]
Name=cluster
Baseurl= file:///rhel6/ResilientStorage
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
At this point, I believe you have a deeper understanding of the "configuration of Linux local yum source". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.