Material: VMware Fusion for Mac version Rhel-server-7.4-x86_64-dvd.iso
Install the virtual machine via VMware and open the terminal;
1. View IP and network card via Ifconfig
2. Enable network card: vim/etc/sysconfig/network-scripts/ifcfg-NIC Name
Change Onboot=no to Onboot=yes
: Wq Save
3. Configure static IP: (if you need to add more content)
4. Turn off SELinux (System protection):
Vim/etc/selinux/config
Change Selinux=enforcing to Selinux=disabled
: Wq Save
5. Turn off the firewall:
View firewall status: Firewall-cmd--state
Stop firewall: Systemctl stop FIREWALLD
Disable boot: systemctl disable FIREWALLD
Start firewall: Systemctl start FIREWALLD
Set up boot from: Systemctl enable FIREWALLD
6. IP mapping of two hosts:
vim/etc/hosts add IP hostname and domain name for two hosts
7. Configure the Yum source
View Network card: DF
Link discs: Devices on VMware-"CD/DVD (SATA)-Connected CD/DVD
Mount Disc: mount/dev/sr0/media/
When you see: MOUNT:/DEV/SE0 is write-protected,mounting read-only Yes to indicate Mount success
View/media/packages directory not present, mount unsuccessful if not present
Yum List View existing sources
Wget-o/etc/yum.repos.d/centos-base.reop Http://mirrors.aliyun.com/repo/Centos-7.repo
If you fail to see if you are connected, if you cannot connect to the network, click VMware in the upper right corner to select Wired connerted->connect
Sed-i ' s/$releasever/7/g '/etc/yum.repos.d/centos-base.repo
Yum Makecache
Yum Clean All
Yum List
Installing the Epel source (the extension source for Yum)
Yum Install Epel-release-y
Yum Makecache
Done!!! Red Hat 7.4 Server initialization complete under Mac
Red Hat 7.4 Server initialization under Mac