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
|-----------------------------------------------------------------|
| 準備工作到此結束 下面我們就要開始安裝了 |
|-----------------------------------------------------------------|