OpenStack之三: 安装MySQL,rabbitmq, memcached

官网地址: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

 

posted @ 2019-08-29 21:47  Linus小跟班  阅读(359)  评论(0编辑  收藏  举报