CentOS7.1 安装Liberty之环境准备(1)

一、基础平台

  1.一台装有VMware的windows系统(可联网)

  2.CentOS 7.1 64bit镜像

二、最小化安装两台CentOS 7.1 的虚拟机controller、compute1,要求如下:

  controller:内存2G、硬盘100G、CPU 2核(勾选Virtualization engine中:Virtualize Intel VT-x/EPT or AMD-V/RVI,否则后期创建实例报错)、网卡2个

  compute1: 内存4G、硬盘100G、CPU 2核(勾选Virtualization engine中:Virtualize Intel VT-x/EPT or AMD-V/RVI,否则后期创建实例报错)、网卡2个

  系统最小化安装、关闭firewalld、selinux:

systemctl stop firewalld.service
systemctl disable firewalld.service
sed -i ‘/SELINUX/s/enforcing/disabled/g‘ /etc/sysconfig/selinux
setenforce 0

三、网卡配置

  网卡数目及配置参照官网(官网有绘制的结构图,可以对应着看一下);由于是在虚拟机搭建,网卡模式的选择这里不做过多讲解,可查看相关资料

  controller:

    ens33:10.0.0.11/24(NAT)

    ens34: 做外部接口,不配置IP(桥接) 

配置ens34保证如下:  

vim  /etc/sysconfig/network-scripts/ifcfg-ens34
  DEVICE=ens34
  TYPE=Ethernet
  ONBOOT="yes"
  BOOTPROTO="none"

  compute1:

    ens33:10.10.0.31/24(NAT)  

    ens34:做外部接口,不配置IP(桥接)

配置ens34保证如下:  

vim  /etc/sysconfig/network-scripts/ifcfg-ens34
  DEVICE=ens34
  TYPE=Ethernet
  ONBOOT="yes"
  BOOTPROTO="none"

四、绑定hosts

  在各节点/etc/hosts文件中添加如下:  

  # controller

  10.0.0.11 controller

  # compute1

  10.0.0.31 compute1

  最好重启系统:

reboot

五、验证各节点连通性

  在controller上:分别ping www.baidu.com 节点IP:10.0.0.31

  在compute1上:ping www.baidu.com 验证外网联通性

六、初始化安装系统工具

controller:

yum -y install net-tools ntp ntpdate vim 

compute1:

yum -y install net-tools ntpdate vim

七、配置各节点时间同步

controller:

cat /etc/ntp.conf | grep -v "#" | grep -v ^$
  driftfile /var/lib/ntp/drift
  restrict default nomodify notrap nopeer noquery
  restrict 127.0.0.1
  restrict ::1
  restrict 10.0.1.0 mask 255.255.255.0 nomodify notrap
  restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
  server s2m.time.edu.cn iburst
  includefile /etc/ntp/crypto/pw
  keys /etc/ntp/keys
  disable monitorsystemctl stop ntpd; ntpdate s2m.time.edu.cn;/sbin/hwclock -w;systemctl start ntpd

compute1:

crontab -e
    */5 * * * *        /usr/sbin/ntpdate 10.0.0.11; /sbin/hwclock -w
/usr/sbin/ntpdate 10.0.0.11; /sbin/hwclock -w
时间: 2024-08-29 11:26:10

CentOS7.1 安装Liberty之环境准备(1)的相关文章

CentOS7.0 安装JAVA周围环境

CentOS7.0 安装JAVA周围环境  安装JDK 1.配置JDK环境变量 把下载好的JDK(jdk-7u75-linux-x64.gz)文件上传到 Reg: /home/p2pweb/java/ 文件夹下(文件夹可自己定义) [[email protected] ~]# tar -zxv -f jdk-7u75-linux-x64.gz // 解压压缩包 [[email protected] ~]# rm -rf jdk-7u75-linux-x64.gz // 删除压缩包 [[email

centos7 yum安装java运行环境,初识hadoop

安装java运行环境 1.实验机相关信息:[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [[email protected] ~]# uname -r3.10.0-327.el7.x86_62.配置epel源,以yum方式安装openjdkyum search java | grep -i JDKyum install java-1.8.0-openjdk java-1.8.

CentOS7下安装部署LAMP环境

(1)配置概要:  1. 172.16.100.31主机运行httpd+php服务(php为模块工作模式)  配置两台虚拟主机:wordpress个人博客系统.PHPmyadmin远程控制mysql 2.172.16.100.31主机运行mariadb服务(mysql) (2)配置流程:  首先配置172.16.100.31主机:http服务              1.安装程序:[[email protected]'s linux ~]# yum install httpd php php-

Centos7 yum安装Python3.6环境,超简单

配置好Python3.6和pip3安装EPEL和IUS软件源 yum install epel-release -y yum install https://centos7.iuscommunity.org/ius-release.rpm -y 安装Python3.6 yum install python36u -y 创建python3连接符 ln -s /bin/python3.6 /bin/python3 安装pip3 yum install python36u-pip -y 创建pip3链

centos7下安装Java运行环境

目前最新发布的Java是JDK13版本,但大部分公司Java运行的还是jdk8,jdk8版本本身也在持续更新中,这里安装部署Jdk8. oracle官网下载jdk8的安装包,下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html jdk包下载地址(需要注册登录oracle才行):https://download.oracle.com/otn/java/jdk/8u241-b

linux centos7 下安装 php开发环境 (初学)

1. 安装apache yum install httpd httpd-develservice httpd start 启动service httpd stop 停止service httpd restart 重启service httpd status 状态 chkconfig httpd on 将apache 设置为开机启动项2.卸载apache service httpd stop 停止 rpm -qa|grep httpd   列出相关程序包 rpm -e 程序包名 卸载相关程序包 3

Centos7 Minimal安装Oracle 11gR2

Centos7 Minimal安装Oracle 11gR2 环境vm12+新装的centos7 x64 Minimal #root 一些软件 yum install wget unzip net-tool -y #root 安装环境自动配置 cd /etc/yum.repos.d wget http://public-yum.oracle.com/public-yum-ol7.repo wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol

Centos7最小化安装下安装,编译lamp环境

centos7默认的php是5.5,mysql已经变为mariadb,如果想要自定义的配置,需要自己手动来编译配置.以下步骤在公司服务器上已经正常操作过. 1.安装centos7选择基本安装,配置完网络后首先要先关闭firewall: 停止firewall # systemctl stop firewalld.service 禁止firewall开机启动 # systemctl disable firewalld.service 2.安装iptables防火墙 yum方式安装iptables #

centos7.0 安装日志--图文详解-python开发环境配置

centos7.0发布之后,就下载了everthing的DVD镜像,今天有时间,所以决定在vbox底下体验一番--- 上图: 默认是体验安装,作为一个忠实粉丝,我决定选择直接安装! 这个界面是这次新版本更新后改的,它把以前要下一步.上一步可以修改的操作全部集中到一个页面来,默认选择是下图这样,比如你想修改软件安装选项只要点击相应选项就可以了. 每次你更改安装选项之后,它都会自动从新计算安装源,如果你的选择的资源本地没有,还可以通过网络来安装,默认网络是不启用的,所以我们需要自己手工设置一下网络.