In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to troubleshoot yum. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
If you use HTTP as the YUM source, the specific settings are as follows:
1 install httpd installation package # yum-y install httpd
2 Mount ISO to create a local update source
# mount-t iso9660-o loop rh73.iso / mnt/cdrom
# cd / var/www/html/
# mkdir yum
# mount-- bind / mnt/cdrom yum
[root@localhost html] # vi / etc/yum.repos.d/yum.repo
[root@localhost html] # cat / etc/yum.repos.d/yum.repo
[RHEL]
Name=rhel6.3
Baseurl= http://192.168.1.130/yum/
Gpgcheck=0
Enabled=1
3 service httpd start # start the httpd daemon, otherwise you will be prompted that the relevant source cannot be found on other machines
Chkconfig httpd on # set up system services
4 test it
[root@localhost yum.repos.d] # yum clean all
[root@localhost yum.repos.d] # yum makecache
5 error report that unable to connect to YUM source
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Http://192.168.161.1/rh73/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7-"couldn't connect to host"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-source. Please verify its path and try again
First of all, confirm whether the HTTPD service is started.
Service httpd status
And check for firewall restrictions, or turn off the firewall
Service iptables stop
Second, if you still report an unable to connect error
Delete an authentication file
Rm-rf / root/.ssh/known_hosts
Once again, modify the / etc/yum.conf file if the verification error is also reported.
Change the gpgcheck=1 into gpgcheck=0
6 try again
[root@localhost yum.repos.d] # rpm-qa | grep telnet
[root@localhost yum.repos.d] # yum-y install telnet*
Installed:
Telnet.i686 1RO 0.17-47.el6 telnet-server.i686 1RU 0.17-47.el6
Dependency Installed:
Xinetd.i686 2vl 2.3.14-34.el6
Complete!
All right, YUM is fine.
The above content is how to troubleshoot yum. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.