Link: https://pan.baidu.com/s/1A4zs_oY6vstDLcJaEkC63w
Extraction code: y8y8
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:
The firewall is turned off in this power-on state
systemctl stop firewalld (close the firewall in this service)
Firewall is disabled after server restart
systemctl disable firewalld (disable firewall service)
View firewall status
systemctl status firewalld
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
Reference: http://www.xue51.com/soft/36210.html
Recommended Posts