openstack 前期准备工作

OS 是 centos6.5_X86_64

一、vmware 虚拟机

  准备两台机虚拟机即可

二、导入第三方安装源

  

1 [root@openstack ~]# rpm -Uvh  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
2 [root@openstack ~]# rpm -Uvh  http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 
3 [root@openstack ~]# yum install  http://repos.fedorapeople.org/repos/openstack/EOL/openstack-havana/rdo-release-havana-7.noarch.rpm

三、配置host文件

1  [root@openstack ~]# vi /etc/hosts  
2  127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 
3   172.16.1.1   openstack 
4   172.16.1.2   node

四、配置IP地址 (自行查资料吧)

五、关闭selinux(自行查资料吧)

六、修改/etc/sysctl.conf 参数

1  [root@openstack ~]# vi /etc/sysctl.conf
2   net.ipv4.ip_forward = 1
3  [root@openstack ~]#sysctl -p

七、安装NTP服务器

1 #vi /etc/ntp.conf 
2 18 restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap
3  22 #server 0.rhel.pool.ntp.org
4  23 #server 1.rhel.pool.ntp.org
5  24 #server 2.rhel.pool.ntp.org
6  35 server  127.127.1.0
7 ------------------
8 # service ntpd start
9 # chkconfig ntpd on

八、配置安装MySQL
(1).安装MySQL服务 

[root@openstack ~]# yum -y install mysql mysql-server MySQL-python

(2).修改MySQL配置文件:

1 # vi /etc/my.cnf [mysqld] 
2 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql 
3 # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0
4 bind-address = 0.0.0.0 #设置监听IP地址0.0.0.0 
5 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid

(3).启动MqSQL服务,设置开机自启动

1 [root@openstack ~]# service mysqld start
2 [root@openstack ~]# chkconfig mysqld on

(4).修改MySQL密码为passwd

[root@openstack ~]# mysqladmin -uroot password 'passwd' 

九、安装配置qpid服务

(1).安装qpid服务 
[root@openstack ~]# yum -y install qpid-cpp-server memcached

(2).修改/etc/qpidd.conf配置文件,将auth设置为no

1 [root@openstack ~]# vi /etc/qpidd.conf
2 
3            auth=no 

 

3).启动qpid服务,设置开机启动

1 [root@openstack ~]# service qpidd start
2 [root@openstack ~]# chkconfig qpidd on 

 

(4).安装OpenStack工具包

[root@openstack ~]# yum install -y openstack-utils

 

 |-----------------------------------------------------------------|

 |   准备工作到此结束 下面我们就要开始安装了 |

 |-----------------------------------------------------------------|

posted @ 2015-08-16 21:49  Dus  阅读(579)  评论(0编辑  收藏  举报