码迷,mamicode.com
首页 > 其他好文 > 详细

安装OpenStack QUEENS版本一:基础环境

时间:2018-08-03 14:18:28      阅读:333      评论:0      收藏:0      [点我收藏+]

标签:sel   cat   技术分享   data   address   bin   maria   net   rabbitmq   

很久没搞openstack了,这两天闲来无事,装了一下QUEENS版本,记录一下。
[root@controller ~]# cat /etc/hosts
192.168.137.36 controller
192.168.137.37 compute

安装OpenStack Queens软件
yum install centos-release-openstack-queens -y
yum install python-openstackclient -y
yum install openstack-selinux -y
yum install openstack-utils -y

安装SQL数据库,控制节点
yum install mariadb mariadb-server python2-PyMySQL -y
[root@controller ~]# cat /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 192.168.137.36

default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

systemctl enable mariadb.service
systemctl start mariadb.service
systemctl status mariadb.service

mysql_secure_installation
Set root password? [Y/n] y
New password:password
Re-enter new password:password

安装RabbitMQ,在控制节点上
yum install rabbitmq-server -y
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
systemctl status rabbitmq-server.service

rabbitmqctl add_user openstack password
rabbitmqctl set_permissions openstack "." "." ".*"

安装Memcached,在控制节点上
yum install memcached python-memcached -y
vim /etc/sysconfig/memcached
OPTIONS="-l 127.0.0.1,::1,controller"

systemctl enable memcached.service
systemctl start memcached.service
systemctl status memcached.service

安装Etcd,在控制节点上
yum install etcd -y
Edit the /etc/etcd/etcd.conf file and set the ETCD_INITIAL_CLUSTER, ETCD_INITIAL_ADVERTISE_PEER_URLS, ETCD_ADVERTISE_CLIENT_URLS, ETCD_LISTEN_CLIENT_URLS to the management IP address of the controller node to enable access by other nodes via the management network:

[root@controller ~]# vim /etc/etcd/etcd.conf
[root@controller ~]# grep -v "^#" /etc/etcd/etcd.conf
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.137.36:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.137.36:2379"
ETCD_NAME="controller"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.137.36:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.137.36:2379"
ETCD_INITIAL_CLUSTER="default=http://192.168.137.36:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"

systemctl enable etcd
systemctl start etcd
systemctl status etcd

技术分享图片

安装OpenStack QUEENS版本一:基础环境

标签:sel   cat   技术分享   data   address   bin   maria   net   rabbitmq   

原文地址:http://blog.51cto.com/andyliu/2154044

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!