(1) Centos7 installation to build a cluster environment

Virtual machine installation##

Link: https://pan.baidu.com/s/1A4zs_oY6vstDLcJaEkC63w
Extraction code: y8y8

centos7 installation package, one-click installation after downloading##

Link: https://pan.baidu.com/s/1MFzXkPWYUJuDiBT1jw2ThQ
Extraction code: y8y8

Customize installation configuration

Set the root login password, enter the virtual machine, and clone two full nodes

Completely cloned three nodes.png

vim /etc/sysconfig/network-scripts/ifcfg-ens33
Gateway configuration:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=xxx.xxx.xx.xxx
NETMASK=255.255.255.0
GATEWAY=xxx.xxx.xx.x
DNS1=114.114.114.114

cd /etc/sysconfig/
vi network
Add to
NETWORKING=yes

Turn off the firewall:

Turn off software installation restrictions:
vi /etc/selinux/config

Change the host name:
vi /etc/hosts
Add ip hostname, such as
192.168.27.101 host1
192.168.27.102 host2
192.168.27.103 host3

Restart the virtual machine:
reboot

ping www.baidu.com or own ip address (you can check ifconfig)
If the ping succeeds, there is no problem, and the other two nodes can do the same.

The latest version of Centos7 has vim installed by default, you can use the command to check whether it is installed
rpm -qa|grep vim
The output is as follows. If there is no output, install vim:
vim-filesystem-7.4.160-4.el7.x86_64
vim-minimal-7.4.160-4.el7.x86_64
vim-enhanced-7.4.160-4.el7.x86_64
vim-common-7.4.160-4.el7.x86_64
yum -y install vim*
After the installation is complete, start configuring vim
vim /etc/vimrc
After opening the file, press i to enter the editing mode, and then find a place to add the following code
set nu "Set the display line number
set showmode "Set to display the current mode at the bottom of the command line interface, etc.
set ruler "displays information such as the line number of the cursor in the lower right corner
set autoindent "Set each time you click the Enter key, when the cursor moves to the next line, it will align with the starting character of the previous line
"syntax on" means to set up syntax detection. When editing C or Shell scripts, keywords will be displayed in special colors
After adding, press Esc, then enter
: wq
Exit and save

SecureCRT installation configuration##

Reference: http://www.xue51.com/soft/36210.html

Recommended Posts

(1) Centos7 installation to build a cluster environment
How to build a LAMP environment on centos7.2
Use Rancher to build a K8s cluster under CentOS7
Build a PXC cluster under CentOS8
First try to build a Ceph storage cluster on Centos7
[PHP] Build a PHP operating environment under CentOS
CentOS6.7 build LNMP environment
Centos6.9 build rabbitmq 3.6.8 cluster
Centos7.6 build LNMP environment
lamp (centos7) installation lamp environment
Centos7 build Kubernetes cluster
CentOS 7 build LNMP environment
Python3 development environment to build a detailed tutorial
Centos7 tutorial to build a master-slave DNS server
Build docker environment under Centos6.5
Build a basic environment for Java development under Centos7
Glusterfs cluster installation on Centos7
Redis cluster installation under CentOS
CentOS 7 Galera Cluster installation guide
CentOS uses Nginx to build a download function server
Redis cluster installation under CentOS
Centos8 implementation steps to build a local web server
CentOS environment installation of Docker
CentOs7.3 build SolrCloud cluster service
Centos7.4 environment installation lamp-php7.0 tutorial
Centos7 hadoop cluster installation and configuration
Centos6 method steps to build gitlab
Build Nginx environment on Linux (CentOS)
How to establish a multi-node Elastic stack cluster on RHEL8 /CentOS8
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos7 uses vim to build powerful pyt
The software environment required for Centos7 installation
Build a LAMP development environment on Ubuntu 16.04
Centos7.5 configuration java environment installation tomcat explanation
Pandoc installation to realize Markdown to PDF (CentOS6)
Steps to build LNMP environment on ubuntu 20.04
Centos7 deploys HAproxy to implement Nginx cluster
Build a python development environment under Ubuntu
Docker learning 2- quickly build a centos7-python3.6 environment
Centos5 installation guide
How to quickly build Nginx server under CentOS
Python - centos6 installation
Build Discuz Forum in LNMP Environment under CentOS7
CentOS7 build jenkins
Docker installation (CentOS7 installation)
Centos build lnmp
Centos7 build python3.8.5+scrapy+gerapy
Build LEMP (Linux+Nginx+MySQL+PHP) environment under CentOS 8.1 (detailed tutorial)
Build Dedecms website in LNMP environment under CentOS7
CentOS7 docker installation
Centos7.2 compile and install way to build phpMyAdmin
From installation to entry of FastDFS under Centos7
3 minutes to teach you to build gitea on Centos server
How to create a CentOS virtual machine in VMware
Embedded Linux development environment to build and configure Ubuntu
Centos8 (minimal installation) a new installation of Python3.8+pip method tutorial
(1) Centos7 installation to build a cluster environment
Use Rancher to build a K8s cluster under CentOS7
First try to build a Ceph storage cluster on Centos7
How to create a CentOS virtual machine in VMware
How to create a Python virtual environment in Ubuntu 14.04
Rapid deployment of Kubernetes (k8s) cluster in CentOS7 environment