↓↓↓↓↓↓↓↓視頻已上線B站↓↓↓↓↓↓↓↓
》》》》》》傳送門
本章節只在Controller節點執行
1.安裝Mariadb數據庫來存儲信息
2.NoSQL數據庫服務
3.安裝並配置(RabbitMQ)消息隊列服務器
4.安裝Memcached緩存服務
1.安裝Mariadb數據庫來存儲信息
# yum -y install mariadb mariadb-server python2-PyMySQL #編輯配置文件#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)]>
2.NoSQL數據庫服務
安裝NoSQL
#yum -y install mongodb-server mongodb
編輯配置文件
#vi /etc/mongod.conf
修改bind_ip = 192.168.100.10 #bind_ip 使用控制節點管理網卡的IP地址
修改smallfiles = true
保存退出
啟動並設置開機啟動MongoDB
#systemctl start mongod
#systemctl enable mongod
3.安裝並配置(RabbitMQ)消息隊列服務器
安裝RabbitMQ服務
#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 '.*' '.*' '.*'
4.安裝Memcached緩存服務
安裝memcached
#yum -y install memcached python-memcached
啟動並設置開機啟動
#systemctl start memcached
#systemctl enable memcached