目录
一、
一、安装部署3台联网的服务器
1. 下载VMware Workstation Pro? ?https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html
安装VMware Workstation Pro
2. 下载CentOS-7-x86_64-DVD-2009.iso? ?https://mirrors.aliyun.com/centos/7/isos/x86_64/
安装CentOS7? ?https://www.runoob.com/w3cnote/vmware-install-centos7.html,https://blog.csdn.net/tsundere_x/article/details/104263100
3. 网络配置NAT模式? ?https://blog.csdn.net/qq_17011423/article/details/82947417
4. 配置完成的三台服务器的IP地址分别为:192.168.126.100、192.168.126.101、192.168.126.102
(base) [root@master ~]# cd /etc/sysconfig/network-scripts/
(base) [root@master network-scripts]# ls
ifcfg-ens33 ...
(base) [root@master network-scripts]# vim ifcfg-ens33
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO=static
NM_CONTROLLED=no
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens33"
UUID="261d2611-1417-4370-8f5e-7657cfd0ba22"
DEVICE="ens33"
ONBOOT="yes"
HWADDR=00:0c:29:21:c1:32
IPADDR=192.168.126.100
PREFIX=24
NETMASK=255.255.255.0
GATEWAY=192.168.126.2
DNS1=114.114.114.114
DNS2=8.8.8.8
(base) [root@master ~]# vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 114.114.114.114
nameserver 8.8.8.8
?
?二、关闭防火墙
(base) [root@master ~]# systemctl stop firewalld.service
(base) [root@master ~]# firewall-cmd --state
not running
|