zoukankan      html  css  js  c++  java
  • openstack基础环境准备(一)

     一、环境介绍

    操作系统 ip地址 主机名 服务
    centos7.5 192.168.56.11 linux-node1 控制节点
    centos7.5 192.168.56.12 linux-node2 计算节点

    二、环境设置

    1、重名网卡

    启动操作系统时输入如下信息:

    net.ifnames=0  biosdevname=0

     2、禁用网络管理

    systemctl   disable   NetworkManager

    3、关闭防火墙 

    systemctl   disable   firewalld 

     4、禁用selinux

    [root@linux-node1 ~]# vi  /etc/selinux/config
    
    
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of three two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected.
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted

    5、修改主机名

    vi  /etc/hostname

    6、设置DNS解析

    vi /etc/resolv.conf
    nameserver   192.168.56.2

    7、修改网卡信息

    [root@linux-node1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 
    TYPE=Ethernet
    BOOTPROTO=static
    DEFROUTE=yes
    NAME=eth0
    DEVICE=eth0
    ONBOOT=yes
    IPADDR=192.168.56.11
    NETMASK=255.255.255.0
    GATEWAY=192.168.56.2

    8、安装eprl仓库

    rpm   -ivh   http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

    9、安装常用命令

    yum  install  -y net-tools  vim  lrzsz  tree screen   lsof tcpdump  nc mtr  nmap  telnet    wget

    10、设置host

    192.168.56.11 linux-node1  linux-node1.example.com
    192.168.56.12 linux-node2  linux-node2.example.com
  • 相关阅读:
    tensorflow2.0第1章 Tensorflow简介与环境搭建
    SIGAI机器学习第二十四集 聚类算法1
    SIGAI机器学习第二十三集 高斯混合模型与EM算法
    51nod1429 巧克力
    CTSC2018 Day2T1 Juice混合果汁
    CF1B Spreadsheets
    CF2B The least round way
    【模板】点分治
    【模板】AC自动机
    【模板】网络流-最大流 Dinic
  • 原文地址:https://www.cnblogs.com/heruiguo/p/openstack.html
Copyright © 2011-2022 走看看