文档详情

openstack-havana安装记录.docx

发布:2017-12-12约1.35万字共11页下载文档
文本预览下载声明
0:基本架构控制节点(controller node)主机名配置:openstack-h1/etc/hosts : HOSTNAME=openstack-h1/etc/sysconfig/network: localhost localhost.localdomain localhost4 localhost4.localdomain4 openstack-h1 11 openstack-h1计算节点(compute node)网络节点(net node)准备工作,在每个节点上执行:#关闭防火墙service iptables stop#关闭selinuxvi /etc/selinux/configSELINUX=disabled1:ntp时钟服务器1.1安装ntpserver,并设置控制节点:[root@localhost ~]# rpm –qa |grep ntp #一般系统都已安装[root@localhost ~]# yum install ntp #若未安装则安装[root@localhost ~]# vi /etc/ntp.conf #编辑ntp服务器配置文件driftfile /var/lib/ntp/driftrestrict default kod nomodify notrap nopeer noqueryrestrict -6 default kod nomodify notrap nopeer noqueryrestrict restrict -6 ::1#server 0.#server 1.#server 2.server # local clockfudge stratum 0 includefile /etc/ntp/crypto/pwkeys /etc/ntp/keys[root@localhost ~]# service ntpd restart #重启ntpd服务[root@localhost ~]# chkconfig ntpd on #开机启动[root@localhost ~]# ntpstat #查看ntp服务器的状态,等到状态为syc...时为表示可以使用Other node:[root@localhost ~]# service ntpd stop #关闭ntp服务器[root@localhost ~]# chkconfig ntpd off #开机关闭[root@localhost ~]# ntpdate 11 #与服务器同步在出现时间格式不一致时(有的格式为CST有的为EST),可以这样设置:cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ,统一为CST[root@localhost ~]# hwclock –w #将系统时钟写进硬件时钟vi /etc/cron.daily/ntpdate #设置每日任务中,增加一个同步时钟的任务ntpdate 11hwclock -w2:mysql数据库2.1 数据库组件安装控制节点:[root@localhost ~]# yum install -y mysql mysql-server MySQL-Python #安装mysql客户端、服务器、python插件[root@localhost ~]# vi /etc/f#修改mysql服务器的配置文件,允许外部客户端连接服务器# Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less secure.bind-address = 11[root@localhost ~]# service mysqld start[root@localhost ~]# chkconfig mysqld onOther node:[root@localhost ~]# yum install –y mysql mysql-server MySQL-Python #安装mysql客户端、python插件2.2 数据库初始设置控制节点:Mysql默认有个root用户,没有密码,所有首先要为root用户设置密码[root@localhost ~]# mysqladmin -u root password 1234563 :openstack工具包安装3.1配置yum源, Each Node[root@localhost ~]# yum install –y /repos/o
显示全部
相似文档