2-openstack??????????????????
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2-openstack??????????????????相关的知识,希望对你有一定的参考价值。
?????????openstack
????????? linux-node1 ????????????
linux-node2 ????????????
2.1.??????centos7?????????
???????????? [[email protected] ~]# hostname linux-node1 [[email protected] ~]# hostname linux-node2
IP??? linux-node1 192.168.56.11/24 linux-node2 192.168.56.12/24
host?????? cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.56.11 linux-node1 linux-node1.oldboyedu.com 192.168.56.12 linux-node2 linux-node2.oldboyedu.com
2.2 selinux ??????????????????
[[email protected] ~]# getenforce Disabled [[email protected] ~]# getenforce Disabled #?????????sed sed -i ???/SELINUX/s/enforcing/disabled/??? /etc/selinux/config ???????????? systemctl stop firewalld systemctl disable firewalld
2.3 ??????????????????(????????????)
yum ???y install chrony grep"allow" /etc/chrony.conf #?????? allow192.168/16 systemctl enable chronyd.service #?????????????????? systemctl start chronyd.service #?????? timedatectl set-timezone Asia/Shanghai #????????????
2.4 ???linux-node1 ??????????????????
yum install -y mariadb mariadb-servermysql-python #??????????????? \cp /usr/share/mysql/my-medium.cnf /etc/my.cnf #?????????????????? ???vi /etc/my.cnf ?????????????????? [mysqld] default-storage-engine = innodb #????????????????????? innodb_file_per_table #???????????????????????? collation-server = utf8_general_ci #?????????????????? init-connect = ???SET NAMES utf8??? #???????????????????????? character-set-server = utf8 #???????????????????????? systemctl enable mariadb.service #????????????????????? systemctl start mariadb.service #?????????????????????
2.5 ??????????????????
2.6 ??????????????????????????????????????????
2.6.1 keystone
MariaDB[(none)]> create database keystone; Query OK,1 row affected (0.01 sec) MariaDB[(none)]> grant all on keystone.* to ???keystone???@???localhost??? identified by???keystonne???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> grant all on keystone.* to ???keystone???@???%??? identified by???keystone???; Query OK, 0 rows affected (0.00 sec)
2.6.2 glance
MariaDB[(none)]> create database glance; Query OK,1 row affected (0.00 sec) MariaDB[(none)]> grant all on glance.* to ???glance???@???%??? identified by ???glance???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> grant all on glance.* to ???glance???@???localhost??? identified by???glance???;
2.6.3 nova???nova_api
MariaDB[(none)]> create database nova; Query OK,1 row affected (0.00 sec) MariaDB[(none)]> grant all on nova.* to ???nova???@???%??? identified by ???nova???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> grant all on nova.* to ???nova???@???localhost??? identified by ???nova???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> create database nova_api; Query OK,1 row affected (0.00 sec) MariaDB[(none)]> grant all on nova_api.* to ???nova???@???localhost??? identified by???nova???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> grant all on nova_api.* to ???nova???@???%??? identified by ???nova???;
2.6.4 neutron
MariaDB[(none)]> create database neutron; Query OK,1 row affected (0.00 sec) MariaDB[(none)]> grant all on neutron.* to ???neutron???@???%??? identified by ???neutron???; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> grant all on neutron.* to ???neutron???@???localhost??? identified by???neutron???;; Query OK,0 rows affected (0.00 sec) MariaDB[(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec)
2.6.5 ???????????????
MariaDB[(none)]> show databases; +--------------------+ |Database | +--------------------+ |information_schema | |glance | |keystone | |mysql | |neutron | |nova | | nova_api | |performance_schema | +--------------------+ 8 rows inset (0.00 sec) MariaDB[(none)]>
2.7 ?????????????????????rabbitmq???
2.7.1 ????????????
yuminstall rabbitmq-server -y systemctl enable rabbitmq-server.service systemctl start rabbitmq-server.service [[email protected]~]# rabbitmqctl add_user openstack openstack #?????????????????????????????? Creatinguser "openstack" ... ...done. [[email protected]linux-node1~]# #???????????????????????????????????? [[email protected]~]# rabbitmqctl set_permissions openstack ".*" ".*"".*" #???????????????????????? Settingpermissions for user "openstack" in vhost "/" ... ...done.
2.7.2 web????????????
???????????? [[email protected]~]# rabbitmq-plugins list [ ]amqp_client 3.3.5 [ ]cowboy 0.5.0-rmq3.3.5-git4b93c2d [ ]eldap 3.3.5-gite309de4 [ ]mochiweb 2.7.0-rmq3.3.5-git680dba8 [ ]rabbitmq_amqp1_0 3.3.5 [ ]rabbitmq_auth_backend_ldap 3.3.5 [ ]rabbitmq_auth_mechanism_ssl 3.3.5 [ ]rabbitmq_consistent_hash_exchange 3.3.5 [ ]rabbitmq_federation 3.3.5 [ ]rabbitmq_federation_management 3.3.5 [ ]rabbitmq_management 3.3.5 [ ]rabbitmq_management_agent 3.3.5 [ ]rabbitmq_management_visualiser 3.3.5 [ ]rabbitmq_mqtt 3.3.5 [ ]rabbitmq_shovel 3.3.5 [ ]rabbitmq_shovel_management 3.3.5 [ ]rabbitmq_stomp 3.3.5 [ ]rabbitmq_test 3.3.5 [ ]rabbitmq_tracing 3.3.5 [ ]rabbitmq_web_dispatch 3.3.5 [ ]rabbitmq_web_stomp 3.3.5 [ ]rabbitmq_web_stomp_examples 3.3.5 [ ]sockjs 0.3.4-rmq3.3.5-git3132eb9 [ ]webmachine 1.10.3-rmq3.3.5-gite9359c7 ???????????? rabbitmq-plugins enable rabbitmq_management systemctlrestart rabbitmq-server.service #?????????????????? ?????? rabbitmq????????????5672 rabbitmq???????????????????????????15672
2.7.3 ????????????
???????????????guest ?????????guest
???openstack????????????admistrator?????????????????????
???????????? ?????????????????? ?????????????????????????????????http://wsxxsl.blog.51cto.com/9085838/1883586
以上是关于2-openstack??????????????????的主要内容,如果未能解决你的问题,请参考以下文章