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/03 Report--
Description
Here we use VMware to create three master node machines and one node node. The process of creating a virtual machine is not described because it is not the focus of this section. The details of the three machines are as follows:
Master node 1: 192.168.246.193 hostname: master01master node 2: 192.168.246.194 hostname: master02master node 3: 192.168.246.195 hostname: master03Node node 1: 192.168.246.196 hostname: node01 fixed virtual machine IP and can access the network normally
The four machines are all operated as follows:
The IP of the host is 192.168.246.193max 194max 195ax.
# Virtual machine network select network adapter-> NAT# change virtual machine network configuration file cd / etc/sysconfig/network-scriptscat > ifcfg-ens33 > / etc/resolv.conf# restart network card systemctl restart network change host name
The four machines are all operated as follows:
The host names are: master01, master02, master03, node01
Hostnamectl set-hostname master01hostname master01bash uses Ali Cloud yum source
The four machines are all operated as follows:
# delete yum source cache data rm-rf / var/cache/yum/x86_64/7/*# Delete the default source rm-rf / etc/yum.repos.d/*# in the system add aliyun base source wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo# add aliyun EPEL source wget-P / etc/yum.repos.d/ http://mirrors.aliyun.com/repo / epel-7.repo # Clean the cache and generate a new cache yum clean allyum makecache# to view the currently used yum source yum repolist installation dependent packages
The four machines are all operated as follows:
Yum install-y conntrack ntpdate ntp ipvsadm ipset jq iptables curl sysstat libseccomp wget vim net-tools git sets the firewall to Iptables and sets an empty rule
The four machines are all operated as follows:
Systemctl stop firewalld & & systemctl disable firewalldyum-y install iptables-services & & systemctl start iptables & & systemctl enable iptables & & iptables- F & & service iptables save & & iptables- nvL close SELINUX
The four machines are all operated as follows:
Swapoff-a & & sed-I'/ swap / s / ^\ (. *\) $/ #\ 1G'/ etc/fstabsetenforce 0 & & sed-I's / ^ SELINUX =. * / SELINUX=disabled/' / etc/selinux/config adjust kernel parameters for K8S
The four machines are all operated as follows:
Cat > / etc/sysctl.d/kubernetes.conf / etc/systemd/journald.conf.d/99-prophet.conf
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.