Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[n version] openstack-- basic Environment preparation (2)

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

[n version] openstack-- basic environment preparation

I. version evolution

Version name

Version date

Contains the component code name

Austin

2010-10-21

Nova,Swift

Bexar

2011-02-03

Nova,Swift,Glance

Cactus

2011-04-15

Nova,Swift,Glance

Diablo

2011-09-22

Nova,Swift,Glance

Essex

2012-04-05

Nova,Swift,Glance,Horizon,Keystone

Folsom

2012-09-27

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder

Grizzly

2013-04-04

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder

Havana

2013-10-17

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer

Icehouse

2014-04-17

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer,Trove

Juno

2014-10-16

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder

Heat,Ceilometer,Trove,Sahara

Kilo

2015-04-30

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer,Trove,Sahara,Ironic

Liberty

2015-10-16

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer,Trove,Sahara,Ironic,Zaqar, Manila, Designate, Barbican

Mitaka

2016-04-08

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer,Trove,Sahara,Ironic,Zaqar, Manila, Designate, Barbican

Newton

2016-10-06

Nova,Swift,Glance,Horizon,Keystone,Quantum,Cinder,Heat

Ceilometer,Trove,Sahara,Ironic,Zaqar, Manila, Designate, Barbican

II. Introduction of basic environment 2.1 environment

Linux-node1:

[root@linux-node1~] # cat / etc/redhat-release

CentOS Linux release7.2.1511 (Core)

[root@linux-node1~] # uname-r

3.10.0-327.36.3.el7.x86_64

[root@linux-node1~] # hostname

Linux-node1.example.com

[root@linux-node1~] # ifconfig eth0 | awk-F'[:] +''NR = = 2 {print $3}'

192.168.56.11

Linux-node2:

[root@linux-node2~] # cat / etc/redhat-release

CentOS Linux release7.2.1511 (Core)

[root@linux-node2~] # uname-r

3.10.0-327.36.3.el7.x86_64

[root@linux-node2~] # hostname

Linux-node2.example.com

[root@linux-node2~] # ifconfig eth0 | awk-F'[:] +''NR = = 2 {print $3}'

192.168.56.12

2.2 the installation package is ready for 2.2.1 both nodes are installed:

[root@linux-node1~] # yum install centos-release-openstack-newton-y

[root@linux-node1~] # yum install python-openstackclient-y

[root@linux-node1~] # yum install openstack-selinux-y

2.2.2 install on node1:

[root@linux-node1 ~] # yum install mariadbmariadb-server python2-PyMySQL-y

[root@linux-node1 ~] # vim/etc/my.cnf.d/openstack.cnf

[mysqld]

Bind-address = 192.168.56.11

Default-storage-engine = innodb

Innodb_file_per_table

Max_connections = 4096

Collation-server = utf8_general_ci

Character-set-server = utf8

[root@linux-node1 ~] # yum installrabbitmq-server

[root@linux-node1 ~] # yum install memcached python-memcached

[root@linux-node1 ~] # yum installopenstack-keystone httpd mod_wsgi-y

[root@linux-node1 ~] # yum installopenstack-glance-y

[root@linux-node1 ~] # yum install-y\

Openstack-nova-api\

Openstack-nova-conductor\

Openstack-nova-console\

Openstack-nova-novncproxy\

Openstack-nova-scheduler

[root@linux-node1 ~] # yum install-y\

Openstack-neutron\

Openstack-neutron-ml2\

Openstack-neutron-linuxbridge\

Ebtables

2.2.3 install on node2

[root@linux-node2 ~] # yum installopenstack-nova-compute-y

[root@linux-node2 ~] # yum installopenstack-neutron-linuxbridge ebtables ipset-y

2.3 time synchronization

[root@linux-node1 ~] # ntpdatetime1.aliyun.com

19 Dec 13:15:45 ntpdate [16110]: step timeserver 115.28.122.198 offset-28798.618654 sec

III. Database environment and message queuing environment configuration 2.1 Database configuration

[root@linux-node1 ~] # cat/etc/my.cnf.d/openstack.cnf

[mysqld]

Bind-address = 192.168.56.11

Default-storage-engine = innodb

Innodb_file_per_table

Max_connections = 4096

Collation-server = utf8_general_ci

Character-set-server = utf8

[root@linux-node1 ~] # systemctl enablemariadb.service

[root@linux-node1 ~] # systemctl startmariadb.service

[root@linux-node1 ~] # mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDEDFOR ALL MariaDB

SERVERS IN PRODUCTION USE! PLEASEREAD EACH STEP CAREFULLY!

In order to log into MariaDB to secure it,we'll need the current

Password for the root user. If you've just installed MariaDB, and

You haven't set the root password yet, thepassword will be blank

So you should just press enter here.

Enter current password for root (enter fornone):

OK, successfully used password, moving on...

Setting the root password ensures thatnobody can log into the MariaDB

Root user without the proper authorisation.

Set root password? [Y/n] y

New password:

Re-enter new password:

Password updated successfully!

Reloading privilege tables..

... Success!

By default, a MariaDB installation has ananonymous user, allowing anyone

To log into MariaDB without having to have auser account created for

Them. This is intended only for testing, and to make the installation

Go a bit smoother. You should remove them before moving into a

Production environment.

Remove anonymous users? [Y/n] y

... Success!

Normally, root should only be allowed toconnect from 'localhost'. This

Ensures that someone cannot guess at theroot password from the network.

Disallow root login remotely? [Y/n] y

... Success!

By default, MariaDB comes with a databasenamed 'test' that anyone can

Access. This is also intended only for testing, and should be removed

Before moving into a production environment.

Remove test database and access to it? [Y/n] y

-Dropping test database...

... Success!

-Removing privileges on test database...

... Success!

Reloading the privilege tables will ensurethat all changes made so far

Will take effect immediately.

Reload privilege tables now? [Y/n] y

... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB

Installation should now be secure.

Thanks for using MariaDB!

2.2 configure rabbitMQ message queuing

[root@linux-node1 ~] # systemctl enablerabbitmq-server.service

[root@linux-node1 ~] # systemctl startrabbitmq-server.service

[root@linux-node1 ~] # rabbitmqctl add_useropenstack openstack

Creating user "openstack"...

[root@linux-node1 ~] # rabbitmqctlset_permissions openstack ". *"

Setting permissions for user "openstack" in vhost "/".

[root@linux-node1 ~] # rabbitmq-pluginsenable rabbitmq_management

The following plugins have been enabled:

Mochiweb

Webmachine

Rabbitmq_web_dispatch

Amqp_client

Rabbitmq_management_agent

Rabbitmq_management

Applying plugin configuration torabbit@linux-node1... Started 6 plugins.

Page visit: 192.168.56.11 15672 Open the rabbitmq page

User name: guest

Password: guest

Openstack is the user created above

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report