EDITORIAL
Online there are a lot of various installation documentation, a detailed have a rough, not the same, so write your own installation documentation, sum up my experience over the pit.
Preparation: VMware12, Centos7.6
As used herein:
VMware versions: VMware pro12
Centos version: Centos7.6
Create a virtual machine
Here as the machine is 6-core cpu 32G memory, so the setting is relatively large, specific situation, please set according to their needs. Generally keep the default
Here default is 20GB, please according to their own needs to be set up, I use this time to build because it CDH set relatively large.
All files stored as a single disk file so the virtual machine will produce only stored in the specified directory,
The split into multiple files so your computer will produce data in each disk will.
Open virtual machine
After the virtual machine to the root user password
The installation is complete
Check IP
centos7 canceled ifconfig, see the IP addresses ip addr
Static IP
input the command
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Enter profile
First, the BOOTPROTO = "dhcp" into BOOTPROTO = "static" for static acquisition,
Then additional content
#追加内容
PREFIX=24
IPADDR=192.168.0.128
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=144.144.144.144
Additional content in a virtual machine its own IP, and its own IP segment
After saving restart
service network restart
CentOS7 turn off the firewall
systemctl stop firewalld.service #停止firewall
disable firewalld.service systemctl # prohibit firewall boot
Note: If you are deploying virtual machines in two or more computers, you need to use other computers in the same network to access the virtual machine, then you need to change the network settings of the virtual machine. Otherwise, only native access.
After setting off a virtual machine
Bridge mode may be used or a custom mode VMnet0
The default NAT mode only native links, NAT mode can be arbitrarily set using your host's network, with bridge mode, it is equivalent to the extra one physical host in the current LAN, one more IP addresses, but using this mode requires the under the same network segment.
Then the virtual machine static address, and the host to set the same network segment.
Such as native IP is 192.168.0.155
Virtual machines need to set static IP to 192.168.0.118, 192.168.0.119, 192.168.0.120, etc.
But pay attention to the same LAN users do not have the same IP, if you have the same IP presence may lead to inaccessible
So pay attention to avoid the same IP within the same local area network.