In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Cloud Computing Learning Route course outline Courseware: using self-built sources:
=
Comprehensive case: establishing a YUM server
Provide the basic software package Base [CD]
Update package is available
Provide other software packages such as nginx, zabbix, docker, hadoop, openstack
Configure the firewall
[root@yum-server] # firewall-cmd-- permanent-- add-service=ftp
[root@yum-server] # firewall-cmd-- reload
Close SELinux
[root@yum-server ~] # setenforce 0
[root@yum-server ~] # vim / etc/sysconfig/selinux
SELINUX=disabled
FTP
[root@yum-server ~] # yum- y install vsftpd
[root@yum-server ~] # systemctl start vsftpd
[root@yum-server ~] # systemctl enable vsftpd
Achieve goal 1: provide the basic software Base
Mount the centos image
[root@yum-server ~] # mkdir / var/ftp/ {centos6u8,centos7u3}
[root@yum-server ~] # mount / home/centos7u3.iso / var/ftp/centos7u3
[root@yum-server ~] # echo "mount / home/centos7u3.iso / var/ftp/centos7u3" > > / etc/rc.d/rc.local
[root@yum-server ~] # chmod + x / etc/rc.d/rc.local
Yum client test
[root@yum-client ~] # rm-rf / etc/yum.repos.d/CentOS-Base.repo
[root@yum-client ~] # vi / etc/yum.repos.d/centos7u3.repo / / add Yum source
[centos7u3]
Name=centos7u3
Baseurl= ftp://192.168.122.202/centos7u3
Gpgcheck=0
Enabled=1
[root@yum-client ~] # yum makecache
[root@yum-client ~] # yum repolist
[root@yum-client ~] # yum- y install wget lftp bash-com* vim-enhanced
Achieve goal 2: provide update
Start yum caching
[root@yum-server ~] # vim / etc/yum.conf
[main]
Cachedir=/var/cache/yum/$basearch/$releasever
Keepcache=1
[root@yum-server ~] # yum clean all
[root@yum-server ~] # yum- y update
[root@yum-server ~] # mkdir / var/ftp/update
[root@yum-server ~] # find / var/cache/yum/x86_64/7/-iname "* .rpm"-exec cp-rf {} / var/ftp/update\
[root@yum-server ~] # yum- y install createrepo
[root@yum-server ~] # createrepo / var/ftp/update
Yum client test
[root@yum-client ~] # rm-rf / etc/yum.repos.d/CentOS-Base.repo
[root@yum-client ~] # vi / etc/yum.repos.d/update.repo
[update]
Name=centos update
Baseurl= ftp://192.168.122.202/update
Gpgcheck=0
Enabled=1
[root@yum-client ~] # yum repolist
Loaded plugins: fastestmirror
Repo id repo name status
Update centos update 75
Repolist: 75
[root@yum-client ~] # yum- y update
Achieve goal 3: provide other software packages such as nginx, zabbix
-- downloadonly
Configure nginx and zabbix feeds
[root@yum-server ~] # vim / etc/yum.repos.d/nginx.repo
[nginx]
Name=nginx repo
Baseurl= http://nginx.org/packages/centos/7/$basearch/
Gpgcheck=0
Enabled=1
Downloadonly
[root@yum-server ~] # yum clean all
[root@yum-server] # yum install nginx-- downloadonly
[root@yum-server ~] # mkdir / var/ftp/ {nginx,zabbix}
[root@yum-server ~] # find / var/cache/yum/x86_64/7/-iname "* .rpm"-exec cp-rf {} / var/ftp/nginx
Create a reopdata:
[root@yum-server ~] # createrepo / var/ftp/nginx / / if you add a new software package, re-create
Yum client test
[root@yum-client ~] # vi / etc/yum.repos.d/nginx.repo
[nginx]
Name=nginx
Baseurl= ftp://192.168.122.202/nginx
Gpgcheck=0
Enabled=1
[root@yum-client ~] # yum repolist
Repo id repo name status
Nginx nginx 1
Update centos update 75
[root@yum-client ~] # yum- y install nginx
The client uses the Yum source:
Add base,update,nginx,zabbix yum Feed
Manual
Shell
Saltstack, Asible, Puppet
Local source: for example, using the installation CD [understanding]
Mount the installation CD (temporary):
[root@tianyun ~] # mount / dev/cdrom / media
Or
[root@tianyun] # mount-o loop centos7u3.iso / media
Add yum Feed
[root@tianyun ~] # vim / etc/yum.repos.d/centos7u3.repo
[centos7u3]
Name=centos7u3
Baseurl= file:///media
Gpgcheck=0
Enabled=1
=
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.