手動安裝liberty版本openstack環境(allinone)---安裝資料庫及rabbitmq
阿新 • • 發佈:2019-02-15
作者:【吳業亮】雲端計算開發工程師
部落格:http://blog.csdn.net/wylfengyujiancheng
1、安裝python-openstackclient和openstack-selinux
# yum install python-openstackclient -y
# yum install openstack-selinux -y
2、安裝資料庫
# yum install mariadb mariadb-server python2-PyMySQL -y
3、建立/etc/my.cnf.d/mariadb_openstack.cnf檔案並寫入
[mysqld]
default -storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
bind-address = MANAGER_IP
注意:將MANAGER_IP替換為eth0的IP
4、啟動資料庫及設定開機啟動
# systemctl enable mariadb.service
# systemctl start mariadb.service
5、配置資料
# mysql_secure_installation
注意:此處需要設定資料庫密碼,其他均輸入y
6、安裝rabbitmq-server
yum install rabbitmq-server -y
7、啟動rabbitmq及設定開機啟動
# systemctl enable rabbitmq-server.service
# systemctl start rabbitmq-server.service
8、建立openstack,注意將PASSWOED替換為自己的合適密碼
rabbitmqctl add_user openstack PASSWOED
9、將openstack使用者賦予許可權
# rabbitmqctl set _permissions openstack ".*" ".*" ".*"