openstack 部署(Q版)-----Mysql、MQ、Memcached安装配置

时间:2023-12-04 19:11:50

一、安装mysql

yum install -y mariadb mariadb-server python2-PyMySQL

配置my.cnf文件

vim /etc/my.cnf

[mysqld]

bind-address = 192.168.10.53
default-storage-engine = innodb
innodb_file_per_table = on
max_connections =
collation-server = utf8_general_ci
character-set-server = utf8

启动mysql并加入开机自启动

systemctl enable mariadb.service
systemctl start mariadb.service

首次运行mysql先设置密码等(一路Y)

mysql_secure_installation

二、安装MQ

yum install -y rabbitmq-server

启动MQ

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

添加openstack用户

rabbitmqctl add_user openstack 

设置openstack用户的权限

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

启用web管理

rabbitmq-plugins list        #查看支持的插件
rabbitmq-plugins enable rabbitmq_management #启动插件
lsof -i:

在浏览器输入:http://IP:15672就可以访问MQ的web页面了,初始登陆用户为guest,密码一样。进去之后把openstack用户tags提权到administrator,将guest用户删除。

三、安装Memcached

yum install -y memcached python-memcached

配置memcached

vim /etc/sysconfig/memcached

OPTIONS="-l 192.168.10.53"

启动memcached

systemctl enable memcached.service
systemctl start memcached.service