码迷,mamicode.com
首页 > 数据库 > 详细

基础服务(mariadb,RabbitMQ)

时间:2018-11-29 18:02:04      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:权限   target   star   mct   table   start   启动   127.0.0.1   tar   

 ###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)

标签:权限   target   star   mct   table   start   启动   127.0.0.1   tar   

原文地址:https://www.cnblogs.com/yypr/p/10039505.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!