手动安装liberty版本openstack环境(allinone)---安装数据库及rabbitmq

作者:【吴业亮】云计算开发工程师
博客:http://blog.csdn.net/wylfengyujiancheng
1、安装python-openstackclient和openstack-selinux

# yum install python-openstackclient -y
# yum install openstack-selinux -y

2、安装数据库

# yum install mariadb mariadb-server python2-PyMySQL -y

3、创建/etc/my.cnf.d/mariadb_openstack.cnf文件并写入

[mysqld]
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
bind-address = MANAGER_IP

注意:将MANAGER_IP替换为eth0的IP
4、启动数据库及设置开机启动

# systemctl enable mariadb.service 
# systemctl start mariadb.service 

5、配置数据

# mysql_secure_installation

注意:此处需要设置数据库密码,其他均输入y
6、安装rabbitmq-server

yum install rabbitmq-server -y

7、启动rabbitmq及设置开机启动

# systemctl enable rabbitmq-server.service 
# systemctl start rabbitmq-server.service 

8、创建openstack,注意将PASSWOED替换为自己的合适密码

rabbitmqctl add_user openstack PASSWOED

9、将openstack用户赋予权限

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

你可能感兴趣的:(mariaDB,rabbitmq,openstack,liberty)