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--
1. Prepare the local yum environment.
-- minimize installation of CentOS7.2 system (CentOS-7-x86_64-Minimal-1511.iso)
-- IPADDR=123.45.67.111/24
1.1 turn off the firewall, turn off SELinux
Systemctl stop firewalldsystemctl disable firewalldsetenforce 0sed-I's Union SELINUXPRENTENTFORCING systemctl stop firewalldsystemctl disable firewalldsetenforce 0sed'/ etc/selinux/config
1.2 install basic software
Yum-y install vim createrepo httpd
1.3 backing up CentOS-Base.repo files
Mkdir / etc/yum.repos.d/backupmv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/backup
1.4 rebuild the repo file
Echo'[ocata] name=CentOS-Ocatabaseurl= https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-ocata/enable=1gpgcheck=0[ocata-extras]name=CentOS-Ocata-extrasbaseurl=https://mirrors.aliyun.com/centos/7/extras/x86_64/enable=1gpgcheck=0[centos7]name=Centos-7baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/enable=1gpgcheck=0'>/etc/yum.repos.d/CentOS-Base.repo
1.5 update and restart the system
Yum clean allyum makecacheyum-y updatereboot
1.6 load the remote software package (a total of 12g, it took me about 20 minutes to download)
Cd / var/www/reposync-repoid=ocatareposync-repoid=ocata-extrasreposync-repoid=centos7
1.7 generate repodata
Createrepo / var/www/ocata/createrepo / var/www/ocata-extras/createrepo / var/www/centos7/
1.8 configure the httpd service
Vim / etc/httpd/conf/httpd.conf119 Line change DocumentRoot "/ var/www/html" to DocumentRoot "/ var/www/" line 131 will be changed to
1.9Boot httpd and boot
Systemctl start httpdsystemctl enable httpd
1.10 verify the httpd service
Enter http://123.45.67.111/ocata for verification of browser address bar
2. Rebuild the local repo file to use the yum source
2.1 backing up local CentOS-Base.repo files
Mkdir / etc/yum.repos.d/backupmv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/backup
2.2 rebuilding the repo file
Echo'[ocata] name=CentOS-Ocatabaseurl= http://123.45.67.111/ocata/enable=1gpgcheck=0[ocata-extras]name=CentOS-Ocata-extrasbaseurl=http://123.45.67.111/ocata-extras/enable=1gpgcheck=0[centos7]name=Centos-7baseurl=http://123.45.67.111/centos7/enable=1gpgcheck=0'>/etc/yum.repos.d/CentOS-Base.repo
2.3 Test yum configuration and generate cache files
Yum clean allyum makecacheyum repolist all
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.