CentOS7.1 installation Liberty's environment preparation (1)

Source: Internet
Author: User

First, the basic platform

1. A Windows system with VMware (networked)

2.CentOS 7.1 64bit Mirror

Second, the minimum installation of two CentOS 7.1 virtual machine Controller, COMPUTE1, the requirements are as follows:

Controller: Memory 2G, hard disk 100G, CPU 2 cores ( tick virtualization engine: virtualize Intel vt-x/ept or Amd-v/rvi, or post-creation instance error ), Network card 2 x

Compute1: Memory 4G, hard disk 100G, CPU 2 cores ( tick virtualization engine: virtualize Intel vt-x/ept or Amd-v/rvi, or post-creation instance error ), Network card 2 x

  System minimized installation, Shutdown FIREWALLD, SELinux:

systemctl Stop firewalld.servicesystemctl disable Firewalld.service sed ' /selinux/s/enforcing/disabled/g ' /etc/sysconfig/0

Third, network card configuration

Network card number and Configuration Reference official website (the official website has drawn the structure chart, can correspond to see); because it is in the virtual machine building, the choice of network card mode here do not do too much to explain, you can view the relevant information

Controller

ENS33:10.0.0.11/24 (NAT)

ENS34: Do external interface, do not configure IP (bridging)

The configuration ens34 is guaranteed as follows:

Vim  /etc/sysconfig/network-scripts/ifcfg-ens34 DEVICE=ens34 TYPE=Ethernet onboot= " Yes " Bootproto="none"

Compute1:

ENS33:10.10.0.31/24 (NAT)

ENS34: Do external interface, do not configure IP (bridging)

The configuration ens34 is guaranteed as follows:

Vim  /etc/sysconfig/network-scripts/ifcfg-ens34 device=ens34 type= Ethernetonboot="Yes  " bootproto="none"         

Iv. Binding the Hosts

Add the following in each node/etc/hosts file:

# Controller

10.0.0.11 Controller # compute1 10.0.0.31 compute1

It is best to restart the system:

Reboot

Five, verify the connectivity of each node

On the controller: Ping the www.baidu.com node separately ip:10.0.0.31 on compute1: Ping www.baidu.com Verify extranet connectivity VI. Initialize the installation system ToolsController
Yum Install

Compute1:

Yum Install net-tools ntpdate vim

Seven, configure each node time synchronization

Controller

Cat/etc/ntp.conf |grep-V"#"|grep-V ^$ driftfile/var/lib/ntp/drift Restrict default nomodify notrap nopeer noquery Restrict127.0.0.1Restrict::1Restrict10.0.1.0Mask255.255.255.0nomodify notrap Restrict10.0.0.0Mask255.255.255.0nomodify notrap server s2m. Time. edu.cn Iburst includefile/etc/ntp/crypto/PW Keys/etc/ntp/Keys Disable Monitor
Systemctl Stop ntpd; Ntpdate s2m.time.edu.cn;/sbin/hwclock-w;systemctl Start ntpd

Compute1:

Crontab-e    */5 * * * * *        10.0.  0.11; /sbin/hwclock-w10.0. 0.11; /sbin/hwclock-W

CentOS7.1 installation Liberty's environment preparation (1)

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.