第一章 OpenStack课程大纲和OpenStack简介

一、实验环境的部署:

安装CentOS7,设置BIOS支持虚拟化

ROOT密码:qawsed

1.修改网卡地址

cd /etc/sysconfig/network-scripts/
vi ifcfg-eth0
BOOTPROTO=static
ONBOOT=yes
UUID注释掉
删除IPv6设置
增加固定IP信息:
IPADDR=192.168.1.11
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

 

2.重启网络服务

[root@linux-node1 ~]# systemctl restart network

 



3.关闭networkManager和防火墙开启自启动

[root@linux-node1 ~]# systemctl disable firewalld
[root@linux-node1 ~]# systemctl disable NetworkManager


4.设置主机名

[root@linux-node1 ~]# vi /etc/hostname

修改为

linux-node1.example.com

 




5.设置主机名解析

[root@linux-node1 ~]# vi /etc/hosts
新增加     
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.11 linux-node1 linux-node1.example.com
192.168.1.12 linux-node2 linux-node2.example.com

 





6.设置DNS解析

[root@linux-node1 ~]# vi /etc/resolv.conf
增加
nameserver 192.168.1.1

 




7.安装EPEL仓库

[root@linux-node1 ~]# rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

和常用命令

[root@linux-node1 ~]# yum install -y net-tools vim lrzsz tree screen lsof tcpdump nc mtr nmap

 




8.关闭并确认SELinux处于关闭状态

[root@linux-node1 ~]# vim /etc/sysconfig/selinux
# 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

 





9.更新系统并重启

[root@linux-node1 ~]# yum update -y && reboot

 




检查相关服务是否被关闭:

[root@linux-node1 ~]# getsebool
getsebool:  SELinux is disabled
[root@linux-node1 ~]# iptables -vnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

 




关机作快照


一、OpenStack项目介绍:

                                                                                                               Openstack介绍

 

                                                                                                              Openstack服务

 

                                                                                                              Openstack组件

                                                                                                              Openstack开发语言

                                                                                                              Openstack概念架构

                                                                                                              Openstack逻辑架构

 

                                                                                                               openstack实战架构

 

posted @ 2017-06-12 22:30  Mr.hu  阅读(525)  评论(0编辑  收藏  举报