openstack 前期准备工作

时间:2024-12-26 11:37:14

OS 是 centos6.5_X86_64

一、vmware 虚拟机

  准备两台机虚拟机即可

二、导入第三方安装源

  

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

三、配置host文件

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

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

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

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

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

七、安装NTP服务器

 #vi /etc/ntp.conf
restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap
#server .rhel.pool.ntp.org
#server .rhel.pool.ntp.org
#server .rhel.pool.ntp.org
server 127.127.1.0
------------------
# service ntpd start
# chkconfig ntpd on

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

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

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

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

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

 [root@openstack ~]# service mysqld start
[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

 [root@openstack ~]# vi /etc/qpidd.conf

            auth=no 

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

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

(4).安装OpenStack工具包

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

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

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

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