#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
啓動數據庫並設置開機自啓python
#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
保存退出mysql
#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