In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Description: linux-node1 control node
Linux-node2 compute node
2.1. Two centos7 servers
Hostname: [root@linux-node1 ~] # hostname linux-node1 [root@linux-node2 ~] # hostname linux-node2IP: linux-node1 192.168.56.11 etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.56.11 linux-node1 linux-node1.oldboyedu.com 24 linux-node2 192.168.56.12/24host parsing cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.56.11 linux-node1 linux-node1.oldboyedu.com 192.168.56.12 linux-node2 linux-node2.oldboyedu.com
2.2 selinux and firewall shutdown
[root@linux-node2 ~] # getenforce Disabled [root@linux-node1 ~] # getenforce Disabled# can use sedsed-I'/ SELINUX/s/enforcing/disabled/' / etc/selinux/config firewall: systemctl stop firewalldsystemctl disable firewalld
2.3 configure time synchronization (both)
Yum-y install chronygrep "allow" / etc/chrony.conf # Open allow192.168/16systemctl enable chronyd.service # set boot systemctl start chronyd.service # launch timedatectl set-timezone Asia/Shanghai # synchronization time zone
2.4 install the database on linux-node1
Yum install-y mariadb mariadb-serverMySQl-python # install database\ cp / usr/share/mysql/my-medium.cnf / etc/my.cnf # copy configuration file add the following lines to vi / etc/my.cnf [mysqld] default-storage-engine = innodb # default storage engine innodb_file_per_table # use exclusive tablespace collation-server = utf8_general_ci # set proofreading rules init-connect = 'SET NAMES Utf8' # set linked character set character-set-server = utf8 # set default character set systemctl enable mariadb.service # boot database systemctl start mariadb.service # start the database immediately
2.5 initialize the database
2.6 create a database for each component and receive authorization
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 and 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 Inspection database
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 install message queuing (rabbitmq)
2.7.1 basic installation
Yuminstall rabbitmq-server-ysystemctl enable rabbitmq-server.servicesystemctl start rabbitmq-server.service [root@linux-node1~] # rabbitmqctl add_user openstack openstack # create message queue authentication user Creatinguser "openstack" .done. [root@linux-node1~] # # users created must be authorized to use [root@linux-node1~] # rabbitmqctl set_permissions openstack ". *" # authorized users can only use Settingpermissions for user "openstack" in Vhost "/" .done.
2.7.2 web interface installation
View the component [root@linux-node1~] # 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 loader rabbitmq-plugins enable rabbitmq_management systemctlrestart rabbitmq-server.service # restart message queue indicates that rabbitmq listens to 5672 rabbitmq and the management interface listens to 15672
2.7.3 access Test
Default is user guest password is guest
Let the openstack user have the permission of admistrator to log in
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.