In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Install dependency package [root@localhost ~] # yum install-y yum-utils device-mapper-persistent-data lvm22, set Ali Cloud image source [root@localhost ~] # yum-config-manager-add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo3, install Docker-CE [root@localhost ~] # yum install-y docker-ce4, Disable firewall and enhanced security features [root@localhost ~] # systemctl stop firewalld.service [root@localhost ~] # setenforce 0 [root@localhost ~] # 5. Enable the service. Set it to boot self-starting [root@localhost ~] # systemctl start docker.service [root@localhost ~] # systemctl enable docker.serviceCreated symlink from / etc/systemd/system/multi-user.target.wants/docker.service to / usr/lib/systemd/system/docker.service. [root@localhost ~] # 6. Set Ali Cloud Image acceleration
(1) go to the home page of Aliyun and choose to log in. Those who do not have an account can register one.
(2) Select the console after logging in successfully
(3) Select products and services, and then select container image service.
(4) choose the lowest mirror accelerator, and then you can provide the corresponding accelerator address according to your system. Everyone has their own accelerator address.
(5) configure image acceleration
[root@localhost ~] # cd / etc/docker/ # # if you don't have this directory Manually create [root@localhost docker] # lskey.json [root@localhost docker] # tee / etc/docker/daemon.json "registry-mirrors": ["https://******.******.aliyuncs.com"]>} > EOF {" registry-mirrors ": [" https://******.*******.aliyuncs.com"]}[root@localhost docker] # lsdaemon.json key.json [root] @ localhost docker] # systemctl daemon-reload # # reload daemon [root@localhost docker] # systemctl restart docker # # restart docker [root@localhost docker] # 7, Enable packet forwarding in the system [root@localhost docker] # echo "net.ipv4.ip_forward=1" > > / etc/sysctl.conf [root@localhost docker] # sysctl-p # # load configuration net.ipv4.ip_forward=1 [root@localhost docker] #
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.