In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the process of offline installation of ansible". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Prepare the same OS server that can connect to the Internet, and use the yumdownloader tool to download the ansible installation package and all dependent packages.
Install the Yumdownloader tool as root:
Yum install yum-utils
Create a folder
Mkdir / root/mypackages
There is no ansible in the default source, so you need to install the fedora epel source:
Yum install http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Download ansible and all dependent packages
Yumdownloader-resolve-destdir / root/mypackages/ ansible
Yumdownloader-resolve-destdir / root/mypackages/ createrepo
Note: if redhat linux reports a problem with This system is not registered to Red Hat Subscription Management, please refer to
Http://blog.itpub.net/30345407/viewspace-2666578/
2. Package all the rpm installation packages downloaded in the previous step, transfer them to the server in the enterprise environment, and extract them to the / packages folder.
Install createrepo first:
Cd / packages
Rpm-ivh createrepo-0.9.9-27.el6_9.noarch.rpm
Then use createrepo to generate a yum repository that meets the requirements, and execute:
Createrepo / packages
3. Configure the local yum source
Vi / etc/yum.repos.d/yum.repo
[test]
Name=myyum
Baseurl= file:///packages
Gpgcheck=0
Enabled=1
Save the exit and execute:
Yum clean all
Yum repolist
4. Install ansible using yum
Yum install ansible
Verify that the installation is successful:
Ansible-version
Ansible 2.4.2.0
This is the content of "the process of offline installation of ansible". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.