基础服务(mariadb,RabbitMQ)
Posted yypr
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基础服务(mariadb,RabbitMQ)相关的知识,希望对你有一定的参考价值。
###openstack-ocata 单节点安装 部署 目录汇总
一. 安装mariadb服务,mariadb与mysql相同,为mysql社区版
yum install mariadb mariadb-server python2-PyMySQL -y
--------------------------------------------------------------------------------
二. 创建文件
vim /etc/my.cnf.d/openstack.cnf
echo ‘
[mysqld]
bind-address = 192.168.2.70
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
‘>>/etc/my.cnf.d/server.cnf
#bind-address 为控制节点ip
--------------------------------------------------------------------------------
三. 启动sql服务
systemctl enable mariadb.service
systemctl start mariadb.service
--------------------------------------------------------------------------------
四.初始化sql服务 创建root 密码
mysql_secure_installation
一. 安装activemq服务
yum install rabbitmq-server -y
--------------------------------------------------------------------------------
二 . 启动mq服务,以及开机自动启动
systemctl enable rabbitmq-server.service
systemctl restart rabbitmq-server.service
systemctl status rabbitmq-server.service
--------------------------------------------------------------------------------
三 . 添加mq用户与权限
rabbitmqctl add_user openstack RABBIT_PASS
####Creating user "openstack" ...
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
####Setting permissions for user "openstack" in vhost "/" ...
--------------------------------------------------------------------------------
四.安装缓存服务
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
以上是关于基础服务(mariadb,RabbitMQ)的主要内容,如果未能解决你的问题,请参考以下文章
##2.基础服务(SQl,RabbitMQ)--openstack