标签:png def open char character start res data 节点管理
#vi /etc/my.cnf
在[mysqld]下添加如下内容
bind-address = 192.168.100.10
default-storage-engine = innodb
innodb_file_per_table
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
启动数据库并设置开机自启
#systemctl start mariadb
#systemctl enable mariadb
mysql_secure_installation
脚本,为root用户设置密码[root@controller ~]# mysql_secure_installation
Enter current password for root (enter for none): #这句话直接回车
Set root password? [Y/n] 选择Y,然后设置数据库密码 这里设置000000
Remove anonymous users? [Y/n] 选择Y
Disallow root login remotely? [Y/n] 选择N
Remove test database and access to it? [Y/n] 选择Y
Reload privilege tables now? [Y/n] 选择Y
[root@controller ~]# mysql -uroot -p000000
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.1.12-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
#yum -y install mongodb-server mongodb
编辑配置文件
#vi /etc/mongod.conf
修改bind_ip = 192.168.100.10 #bind_ip 使用控制节点管理网卡的IP地址
修改smallfiles = true
保存退出
#systemctl start mongod
#systemctl enable mongod
#yum -y install rabbitmq-server
启动并设置开机启动
#systemctl start rabbitmq-server
#systemctl enable rabbitmq-server
添加Openstack用户并设置密码
#rabbitmqctl add_user openstack 000000 #此处六个零为密码,可自行更改
给openstack用户权限 : 配置 写 读 三个权限
[root@controller ~]# rabbitmqctl set_permissions openstack '.*' '.*' '.*'
#yum -y install memcached python-memcached
启动并设置开机启动
#systemctl start memcached
#systemctl enable memcached
(二)OpenStack---M版---双节点搭建---数据库安装和配置
标签:png def open char character start res data 节点管理
原文地址:https://www.cnblogs.com/zhijian1574/p/11956817.html