龙空技术网

centos7.6 安装openstack stein组件之四

直率坦然 89

前言:

现时兄弟们对“openstack安装centos”都比较关心,朋友们都需要剖析一些“openstack安装centos”的相关知识。那么小编在网摘上搜集了一些有关“openstack安装centos””的相关内容,希望我们能喜欢,小伙伴们一起来学习一下吧!

启用stein包:

yum install centos-release-openstack-stein -y

yum install python-openstackclient openstack-selinux -y

安装组件:mariadbrabbitmqmemcachedetcd安装mariadb:

yum install mariadb mariadb-server python2-PyMySQL -y

配置mariadb

echo '[mysqld]

bind-address = 10.0.0.11

default-storage-engine = innodb

innodb_file_per_table

max_connections = 4096

collation-server = utf8_general_ci

character-set-server = utf8' >/etc/my.cnf.d/openstack.cnf

启动数据库

systemctl start mariadb

systemctl enable mariadb

初始化数据库

mysql_secure_installation <<E0F

N

Y

Y

Y

Y

E0F

mariadb install finish~~~

安装rabbitmq:

yum install rabbitmq-server -y

systemctl start rabbitmq-server.service

systemctl enable rabbitmq-server.service

rabbitmqctl add_user openstack RABBIT_PASS

rabbitmqctl set_permissions openstack ".*" ".*" ".*"

rabbitmq install finish~~~

安装memcached:

yum install memcached python-memcached -y

sed -i 's#127.0.0.1#$ip#g' /etc/sysconfig/memcached

systemctl restart memcached.service

systemctl enable memcached.service

memcached install finish~~~

安装etcd:

yum install etcd -y

配置tecd

echo '

#[Member]

ETCD_DATA_DIR="/var/lib/etcd/default.etcd"

ETCD_LISTEN_PEER_URLS=""

ETCD_LISTEN_CLIENT_URLS=""

ETCD_NAME="controller"

#[Clustering]

ETCD_INITIAL_ADVERTISE_PEER_URLS=""

ETCD_ADVERTISE_CLIENT_URLS=""

ETCD_INITIAL_CLUSTER="controller="

ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"

ETCD_INITIAL_CLUSTER_STATE="new" ' >/etc/etcd/etcd.conf

systemctl enable etcd

systemctl start etcd

etcd install finish~~~

持续更新中。。。

openstack stein 一键部署

标签: #openstack安装centos #centos7memcached安装