一:OPENSTACK Queens系统环境准备
Posted MisterChen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一:OPENSTACK Queens系统环境准备相关的知识,希望对你有一定的参考价值。
系统环境:centos7,两台服务器,一台controller节点,一台computer节点
两个节点,每个节点一个网络接口
controller:ens160:192.168.1.110
computer:ens160:192.168.1.111
----------------------------------------------------------------
centos7系统安装完毕之后简单调整
设置时区
查看时区是否正确
[root@localhost ~]# date
Wed Mar 21 23:04:32 EDT 2018
不正确的话调整过来
[root@localhost ~]# rm -f /etc/localtime
[root@localhost ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@localhost ~]# date
Thu Mar 22 11:05:45 CST 2018
关闭selinux
[root@localhost ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
关闭防火墙
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
安装一些常用组件
[root@localhost ~]# yum install -y vim openssh-clients ntpdate man lrzsz net-tools wget
配置时间同步
[root@localhost ~]# yum install -y chrony
[root@localhost ~]# rpm -qa|grep chrony
chrony-3.1-2.el7.centos.x86_64
[root@localhost ~]# ps -ef|grep chrony
chrony 670 1 0 09:35 ? 00:00:00 /usr/sbin/chronyd
root 2448 1711 0 11:25 pts/0 00:00:00 grep --color=auto chrony
[root@localhost ~]# chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- ntp5.flashdance.cx 2 9 161 19 +8645us[+8645us] +/- 188ms
^- ntp2.flashdance.cx 2 8 371 73 +13ms[ +13ms] +/- 185ms
^* time5.aliyun.com 2 9 377 277 +4031us[+4048us] +/- 18ms
^- 119.79-161-57.customer.l> 2 7 303 79 -703us[ -703us] +/- 155ms
修改文件句柄数
[root@localhost ~]# echo "* soft nofile 655360" >> /etc/security/limits.conf
[root@localhost ~]# echo "* hard nofile 655360" >> /etc/security/limits.conf
配置主机名字,以及hosts解析
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.110 controller
192.168.1.111 computer
————————————————————
[root@computer ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.110 controller
192.168.1.111 computer
———————————————
[root@controller ~]# ping computer
PING computer (192.168.1.111) 56(84) bytes of data.
64 bytes from computer (192.168.1.111): icmp_seq=1 ttl=64 time=0.081 ms
64 bytes from computer (192.168.1.111): icmp_seq=2 ttl=64 time=0.068 ms
64 bytes from computer (192.168.1.111): icmp_seq=3 ttl=64 time=0.070 ms
64 bytes from computer (192.168.1.111): icmp_seq=4 ttl=64 time=0.071 ms
———————————————
[root@computer ~]# ping controller
PING controller (192.168.1.110) 56(84) bytes of data.
64 bytes from controller (192.168.1.110): icmp_seq=1 ttl=64 time=0.075 ms
64 bytes from controller (192.168.1.110): icmp_seq=2 ttl=64 time=0.076 ms
64 bytes from controller (192.168.1.110): icmp_seq=3 ttl=64 time=0.068 ms
64 bytes from controller (192.168.1.110): icmp_seq=4 ttl=64 time=0.062 ms
以上是关于一:OPENSTACK Queens系统环境准备的主要内容,如果未能解决你的问题,请参考以下文章
1. 环境准备 — OpenStack Queens 三节点部署