In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to make an intranet yum source, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
This article refers to: http://www.studylinux.net/?p=4515
Operating system centos7 (selinux firewalld is off)
It is also possible to install the cobbler command and modify it to Ali's yum source 163s
Wget-O / etc/yum.repos.d/CentOS-Base.repo wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3. Install the cobbler command
It's best to install them all.
Yum-y install cobbler dhcp httpd xinetd tftp-server
4. Start the server
[root@localhost ~] # systemctl start httpd [root@localhost ~] # systemctl enable httpd Created symlink from / etc/systemd/system/multi-user.target.wants/httpd.service to / usr/lib/systemd/system/httpd.service. [root@localhost ~] # systemctl start cobblerd [root@localhost ~] # systemctl enable cobblerd Created symlink from / etc/systemd/system/multi-user.target.wants/cobblerd.service to / usr/lib/systemd/system/cobblerd.service. [root@localhost ~] # If an error occurs: [root@localhost ~] # rpm-ql cobbler | grep setting / etc/cobbler/settings modifies the server and server_next in the setting file to the native IP The default is 127.0.0.1, then use cobbler check to make sure there is no problem.
5. Synchronous source
Mkdir-p / var/www/cobbler/repo_mirrorcd / var/www/cobbler/repo_mirrorcobbler repo add-- name=zabbix-- mirror= http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/-- arch=x86_64-- breed=yumcobbler reposynctask started: 2017-06-04_143254_reposynctask started (id=Reposync, time=Sun Jun 4 14:32:54 2017) hello, reposyncrun, reposync Runtime kB: / var/www/cobbler/repo_mirror/zabbix/config.repocreating: / var/www/cobbler/repo_mirror/zabbix/.origin/zabbix.reporunning: / usr/bin/reposync-l-n-d-- config=/var/www/cobbler/repo_mirror/zabbix/.origin/zabbix.repo-- repoid=zabbix-- download_path=/var/www/cobbler/repo_mirror-a x86room643.6 kB 00:00 4.3 kB 00:00 3.4 kB 00:00 3.4 kB 00:00 951 B 00:00 170 kB 00:01 155 kB 00:01 167 kB 00:01 epel/x86_64/updateinfo FAILED base/7/x86_64/primary_db FAILED 808 kB 00:08 4.7 MB 00:46 5.6 MB 01:19 5.6 MB 01:00 20 kB 00:00 230 kB 00:03 335 kB 00:07 714 kB 00:04 621 kB 00:15 622 kB 00:16 11 kB 00:00 240 kB 00:04 606 kB 00:08 1.7 MB 00 : 20 1.7 MB 00:16 5.1 kB 00:00 4.6 kB 00:00 4.7 kB 00:00 3.5 MB 00:48 received on stderr: running: createrepo-c cache-s sha / var/www/cobbler/repo_mirror/zabbixreceived on stdout: Spawning worker 0 with 7 pkgsSpawning worker 1 with 7 pkgsWorkers FinishedSaving Primary metadataSaving file lists metadataSaving other metadataGenerating sqlite DBsSqlite DBs completereceived on stderr: running: chown-R root:apache / var/ Www/cobbler/repo_mirror/zabbixreceived on stdout: received on stderr: running: chmod-R 755 / var/www/cobbler/repo_mirror/zabbixreceived on stdout: received on stderr: * TASK COMPLETE * * [root@localhost repo_mirror] # check [root@localhost repo_mirror] # cd / var/www/cobbler/repo_mirror/zabbix/ [root @ localhost zabbix] # lltotal 10644drwxr-xr-x 2 root apache 4096 Jun 4 14:35 cache-rwxr-xr-x 1 root Apache Jun 4 14:32 config.repodrwxr-xr-x 2 root apache 4096 Jun 4 14:35 repodata-rwxr-xr-x 1 root apache 343120 Apr 25 03:56 zabbix-agent-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 235320 Apr 25 03:57 zabbix-get-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 730860 Apr 25 03:57 zabbix-java-gateway-3.0. 9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 636756 Apr 25 03:57 zabbix-proxy-mysql-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 636252 Apr 25 03:57 zabbix-proxy-pgsql-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 620776 Apr 25 03:57 zabbix-proxy-sqlite3-3.0.9-1.el7.x86 contacts 64.rpm- Rwxr-xr-x 1 root apache 11416 Feb 15 2016 zabbix-release-3.0-1.el7.noarch.rpm-rwxr-xr-x 1 root apache 246096 Apr 25 03:57 zabbix-sender-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 1819916 Apr 25 03:57 zabbix-server-mysql-3.0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 1818888 Apr 25 03:57 zabbix-server-pgsql-3 .0.9-1.el7.x86_64.rpm-rwxr-xr-x 1 root apache 3679892 Apr 25 03:57 zabbix-web-3.0.9-1.el7.noarch.rpm-rwxr-xr-x 1 root apache 5224 Apr 25 03:57 zabbix-web-japanese-3.0.9-1.el7.noarch.rpm-rwxr-xr-x 1 root apache 4756 Apr 25 03:57 zabbix-web-mysql-3.0.9-1.el7.noarch.rpm-rwxr-xr -x 1 root apache 4768 Apr 25 03:57 zabbix-web-pgsql-3.0.9-1.el7.noarch.rpm [root@localhost zabbix] #
Apache mapped address
Http://192.168.56.113/cobbler/repo_mirror/zabbix/
[root@bogon ~] # vim / etc/yum.repos.d/zabbix.repo [local-zabbix] # you can define your own name=local zabbix baseurl= http://192.168.56.113/cobbler/repo_mirror/zabbix/ enabled=1gpgcheck=0
I didn't continue to write the reference link below.
[root@aqdl ~] # cobbler repo add-- name=epel-- mirror= https://mirrors.aliyun.com/epel/7/x86_64/-- arch=x86_64-- breed=yum [root@aqdl] # cobbler repo add-- name=saltstack-- mirror= http://repo.saltstack.com/yum/redhat/latest/x86_64/latest/-- arch=x86_64-- breed=yum [root@aqdl ~] # cobbler repo add-- name=openstack-mitaka-- mirror= https://mirrors.aliyun. Com/centos/7/cloud/x86_64/openstack-mitaka/-arch=x86_64-breed=yum [root@aqdl] # cobbler repo add-name=updates-mirror= https://mirrors.aliyun.com/centos/7/updates/x86_64/-arch=x86_64-breed=yum [root@aqdl] # cobbler repo add-name=extras-mirror= https://mirrors.aliyun.com/centos/7/extras/x86_64/-arch=x86_64-- Breed=yum [root@aqdl ~] # cobbler repo add-- name=os-- mirror= https://mirrors.aliyun.com/centos/7/os/x86_64/-- arch=x86_64-- breed=yum [root@aqdl ~] # cobbler reposync # has a remarkable synchronization effect in the dead of night!
Synchronous completion of production
A repo file is placed in / etc/yum.repos.d/
The following will be fine.
The above content is how to make an intranet yum source. 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.