How to configure VMware multi-node environment

How to configure VMware multi-node environment

This tutorial uses CentOS 7 64-bit. Allocate 2GB of memory and 20G of hard disk space to each virtual machine. Please allocate memory and hard disk space as needed. Use bridge mode for network connection.

Start the virtual machine and use the dhclient tool to automatically assign an available IP address to the virtual machine (dhclient is a DHCP protocol client that uses the DHCP protocol or BOOTP protocol or uses static addresses to configure one or more network interfaces when both protocols are unavailable.). You can see that the IP address assigned to the virtual machine by the tool is 192.168.0.103.

Fixed IP address: Edit the network configuration file vim /etc/sysconfig/network-scripts/ifcfg-ens33, change the value of BOOTPROTO from dhcp to static, indicating the use of static IP, and add the value of the field IPADDR at the end of the configuration file with the IP address obtained by executing the dhclient command just now, add the value of the subnet mask field NETMASK with 255.255.255.0, the value of the gateway GATWAY with the host gateway address, and add a DNS server value of 119.29.29.29 (Tencent DNS)

Save and exit, restart the network card: systemctl restart network.service Repeat the above steps to configure other nodes. Use the SSH tool to test whether the host and nodes, nodes and nodes, and nodes and the external network can ping each other, and use the FTP tool to test whether files can be uploaded to the node server normally.

Note: The network mode of the virtual machine is bridge mode: Bridge mode is to use the virtual bridge to communicate between the host network card and the virtual network card of the virtual machine. It is similar to virtualizing a physical host into a switch, so that they can access each other without interfering with each other. In bridge mode, the virtual machine's IP address needs to be in the same network segment as the host. If networking is required, the gateway and DNS need to be consistent with the host's network card. NAT (Address Translation Mode): In NAT mode, the host network card is directly connected to the virtual NAT device, and the virtual NAT device and virtual DHCP server are used to connect the virtual machine to the external network. Host-only mode: Host-only mode is actually NAT mode without the virtual NAT device, which separates the virtual machine from the external network, making the virtual machine an independent system that only communicates with the host.

Summarize

This is the end of this article about how to configure a multi-node environment with VMware. For more information about configuring a multi-node environment with VMware, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Simple setup of VMware ESXi6.7 (with pictures and text)
  • Summary of pitfalls in importing ova files into vmware
  • VMware vSphere6.0 server virtualization deployment and installation diagram (detailed steps)

<<:  VS2019 connects to mysql8.0 database tutorial with pictures and text

>>:  JS+AJAX realizes the linkage of province, city and district drop-down lists

Recommend

Linux editing start, stop and restart springboot jar package script example

Preface In the springboot configuration file, the...

Summarize some general principles of web design and production

<br />Related articles: 9 practical suggesti...

Detailed explanation of how to exit Docker container without closing it

After entering the Docker container, if you exit ...

Directory permissions when creating a container with Docker

When I was writing a project yesterday, I needed ...

How to install MySQL 5.7.29 with one click using shell script

This article refers to the work of 51CTO blog aut...

Implementing a distributed lock using MySQL

introduce In a distributed system, distributed lo...

Things to note when writing self-closing XHTML tags

The img tag in XHTML is so-called self-closing, w...

MySql knowledge points: transaction, index, lock principle and usage analysis

This article uses examples to explain the princip...

Vue3 (III) Website Homepage Layout Development

Table of contents 1. Introduction 2. Actual Cases...

A brief introduction to MySQL InnoDB ReplicaSet

Table of contents 01 Introduction to InnoDB Repli...

Understanding Vuex in one article

Table of contents Overview Vuex four major object...

Solve the error problem caused by modifying mysql data_dir

Today, I set up a newly purchased Alibaba Cloud E...

Tutorial on installing MYSQL8.X on Centos

MySQL installation (4, 5, 6 can be omitted) State...