Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 12 Server version: 10.1.20-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. MariaDB [(none)]> CREATE DATABASE keystone; MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone. TO ‘keystone‘@‘localhost‘ IDENTIFIED BY ‘devops‘; MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone. TO ‘keystone‘@‘%‘ IDENTIFIED BY ‘devops‘; 二.RabbitMQ服务的安装 [root@controller ~]# yum -y install erlang [root@controller ~]# yum install -y rabbitmq-server [root@controller ~]# systemctl enable rabbitmq-server.service [root@controller ~]# systemctl start rabbitmq-server.service [root@controller ~]# systemctl status rabbitmq-server.service [root@controller ~]# systemctl list-unit-files |grep rabbitmq-server.service [root@controller ~]# rabbitmqctl add_user openstack devops 用户名为:openstack 密码:devops Creating user "openstack" ... [root@controller ~]# rabbitmqctl set_user_tags openstack administrator 设置openstack为管理员 Setting tags for user "openstack" to [administrator] ... [root@controller ~]# rabbitmqctl set_permissions openstack "." "." "." Setting permissions for user "openstack" in vhost "/" ... [root@controller ~]# rabbitmq-plugins list 查看支持的插件 [root@controller ~]# rabbitmq-plugins enable rabbitmq_management 启动插件 Plugin configuration unchanged. Applying plugin configuration to rabbit@controller... started 6 plugins. [root@controller ~]# systemctl restart rabbitmq-server.service [root@controller ~]# lsof -i :15672 测试rabbitMQ是否正常