Red Hat 7.4 Server initialization under Mac

Source: Internet
Author: User
Tags vmware fusion

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.