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

OpenStack之三: 安装MySQL,rabbitmq, memcached

时间:2019-08-29 23:48:37      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:cal   组件   utf8   col   mqc   innodb   tps   config   env   

官网地址:https://docs.openstack.org/install-guide/environment-sql-database-rdo.html

#:安装mysql

[root@mysql ~]# yum install mariadb mariadb-server -y

#在控制节点安装MySQL的连接组件

[root@localhost ~]# yum install python2-PyMySQL -y

#:配置MySQL

[root@mysql ~]# vim /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 0.0.0.0    #:修改此处监听地址

default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

#:启动MySQL

[root@mysql ~]# systemctl enable mariadb.service
[root@mysql ~]# systemctl start mariadb.service

#:初始化MySQL

[root@mysql ~]# mysql_secure_installation



官网地址:https://docs.openstack.org/install-guide/environment-messaging-rdo.html

#:安装rabbitmq

[root@mysql ~]# yum install rabbitmq-server -y

#:启动rabbitmq

[root@mysql ~]# systemctl enable rabbitmq-server.service
[root@mysql ~]# systemctl start rabbitmq-server.service

#:创建用户

[root@mysql ~]# rabbitmqctl add_user openstack openstack123

#:授权

[root@mysql ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"

#:添加组件

[root@mysql ~]# rabbitmq-plugins  enable rabbitmq_management



官网地址:https://docs.openstack.org/install-guide/environment-memcached-rdo.html

#:安装memcached

[root@mysql ~]# yum install memcached -y

#:在控制节点安装memcached组件

[root@localhost ~]# yum install python-memcached -y

#:修改配置

[root@localhost ~]# vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="1024"   #:修改内存大小,单位M
OPTIONS="-l 0.0.0.0,::1"   #:修改监听地址


#:启动

[root@mysql ~]# systemctl enable memcached.service
[root@mysql ~]# systemctl start memcached.service

 

OpenStack之三: 安装MySQL,rabbitmq, memcached

标签:cal   组件   utf8   col   mqc   innodb   tps   config   env   

原文地址:https://www.cnblogs.com/maxuebin/p/11432231.html

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