In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this paper, an example is given to describe the method of building YUM in local local area network based on Centos 6.5. environment. Share with you for your reference, the details are as follows:
1. Brief introduction to yum:
Yum, the abbreviation of Yellow dog Updater and Modified, is a software package manager developed by Duke University to improve the installation of RPM software packages. Originally developed by Terra Soft, the developer of the yellow dog distribution, and written in python, it was then called yup (yellow dog updater), and later improved by the Linux@Duke development team at Duke University. The purpose of yum is to automatically upgrade, install / remove rpm packages, collect information about rpm packages, check dependencies, and automatically prompt users for resolution. The key to yum is to have a reliable repository, as the name implies, this is a software repository, it can be a http or ftp site, it can also be a local software pool, but it must include the header,header of rpm, including a variety of information about the rpm package, including descriptions, functions, provided files, dependencies, etc. It is the collection and analysis of these header that automates the remaining tasks.
The idea of yum is to use a central warehouse (repository) to manage the relationship between some or even one distribution application, and to upgrade, install, delete and so on according to the calculated software dependency, so as to reduce the dependencies problem that Linux users have been having a headache. At this point, yum is the same as apt. Apt was originally used by debian's deb type software management, but now it can also use rpm under the RedHat door.
The main function of yum is to add / delete / update RPM packages more conveniently, automatically solve the problem of package dependence, and facilitate the management of a large number of system updates.
Yum can configure multiple resource libraries (Repository) and concise configuration files (/ etc/yum.conf) at the same time, automatically solve the dependency problems encountered when adding or deleting rpm packages, and maintain consistency with the RPM database.
2. Set up YUM:
Server configuration
Mount iso
Mount-o loop-t CentOS-6.5-x86_64-bin-DVD1.iso / mnt
Conventional mount
Mount / dev/cdrom / mnt
Create a copy directory
Mkdir / tmp/repo
Grant authority
Chmod-R 755 / tmp/repo
Copy data
Cp-rf / mnt/* / tmp/repo
Edit the local YUM source file
Cd / etc/yum.repos.d/
Clear the old configuration, or save the configuration
Mv CentOS-Base.repo CentOS-Base.repose_bakmv CentOS-Debuginfo.repo CentOS-Debuginfo.repo_bakmv CentOS-Media.repo CentOS-Media.repo_bakmv CentOS-Vault.repo CentOS-Vault.repo_bak
Or delete them all.
Rm-rf *
Configure local yum
Vi local.repo [Centos 6.5] name=Centos 6.5 baseurl = file:///tmp/repoenabled=1gpgcheck=0
Clear the yum cache and update
Yum clean allyum makecache
Install apache
Yum install httpd*-y
Edit apache profile
Cd / etc/httpd/confcp httpd.conf httpd.conf.bak
Delete the test startup service
Rm-f / etc/httpd/conf.d/welcome.conf / var/www/error/noindex.html
Copy files to a directory or modify DocumentRoot in httpd.conf
Cp-r / tmp/repo / var/www/htmlcd / var/www/htmlchmod-R 755 repo/
Restart the apache service and set the service to start itself
Service httpd restartchkconfig httpd onchkconfig-- list | grep httpd
Client configuration
Cd / etc/yum.repos.d
Clear the old configuration, or save the configuration
Mv CentOS-Base.repo CentOS-Base.repose_bakmv CentOS-Debuginfo.repo CentOS-Debuginfo.repo_bakmv CentOS-Media.repo CentOS-Media.repo_bakmv CentOS-Vault.repo CentOS-Vault.repo_bak
Or delete them all.
Rm-rf *
Configure yum
Vi http.repo [Centos 6.5] name=Centos 6.5 baseurl = http://172.28.70.160/repoenabled=1gpgcheck=0
Clear the yum configuration cache and update
Yum clean allyum makecache
I hope what is described in this article will be helpful to the configuration of CentOS server.
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.