我要评分
获取效率
正确性
完整性
易理解

Configuring the Environment

Perform the operations in this section on each node.

  1. Install the dependencies.
    1
    yum install -y libuuid-devel libibverbs-devel librdmacm-devel libattr-devel redhat-rpm-config rpm-build xfsprogs-devel zlib-devel ant gcc-c++ gcc redhat-lsb-core java-devel unzip libcurl-devel elfutils-libelf-devel kernel-devel
    
  2. Install devtoolset.
    1
    2
    3
    yum install centos-release-scl
    yum install devtoolset-7
    scl enable devtoolset-7 bash
    
  3. Disable the firewall.
    systemctl stop firewalld
    systemctl disable firewalld
  4. Set the permissive mode.
    sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
  5. Open /etc/hosts.
    vim /etc/hosts

    Add the following content:

    192.168.122.2 vm1.kclouder.local vm1 localhost n1
    192.168.122.3 vm2.kclouder.local vm2 localhost n2
    192.168.122.4 vm3.kclouder.local vm3 localhost n3
    192.168.122.5 vm4.kclouder.local vm4 localhost n4

    Set the IP addresses in 5 based on actual conditions.

  6. Download and install the kernel-devel package.
    yum install kernel-devel