In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Brief introduction:
Openstack is the implementation of the (infrastructure as a service, basic setup as a service) IAAS architecture, and OpenStack is an implementation of NASA (National Aeronautics and Space Administration).
Free software and open source projects developed and initiated in cooperation with Rackspace and licensed under the Apache license. Here are the companies that participated in the code submission
Https://www.stackalytics.com/
OpenStack is an open source cloud computing management platform project, which is composed of several major components to complete the specific work. OpenStack supports almost all types of cloud environments
The goal of the project is to provide a cloud computing management platform that is simple to implement, scalable on a large scale, rich and unified in standards. OpenStack provides infrastructure through a variety of complementary services, namely
A solution for services (IaaS), each service providing API for integration.
Openstack updates the new version once every half a year, and the naming rules of the version are named sequentially from AME Z, released in 2010-10-21, and now the latest stable version of Stein.
Since the G version, there are more and more domestic users.
The basic components and functions are as follows
Service name Project name detailed description identity serviceKeystone provides account login security authentication image servicreGlance provides registration and storage management of virtual images placement apiplacement is responsible for recording resource usage, and earlier versions are integrated into nova
ComputeNova provides virtual machine computing resource pool through virtualization technology. NetworkingNeutron realizes the network resource management of virtual machine, namely virtual machine network.
Stein environment preparation:
Official installation document for Stein: https://docs.openstack.org/install-guide/
Basic environment installation: https://docs.openstack.org/install-guide/environment.html
Control side: 192.168.12.17
Compute node: 192.168.12.18 (using centos7.2)
Database: 192.168.12.19
1. Modify the hosts file and use the domain name for all the addresses in the configuration file to facilitate high availability for later Openstack.
[root@node1 ~] # cat / etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.12.17 openstack-vip.heng.net 192.168.12.18 openstack-node1.heng.net 192.168.12.19 openstack-mysql.heng.net
2. Modify the hostname. All hostnames cannot be the same, especially the compute nodes.
[root@controller1 ~] # hostnamectl set-hostname controller1 [root@mysql ~] # hostnamectl set-hostname mysql [root@node1 ~] # hostnamectl set-hostname node1
3. Set time synchronization
[root@controller1 ~] # yum install ntpdate [root@controller1 ~] # ntpdate time1.aliyun.com [root@controller1 ~] # hwclock-w [root@controller1 ~] # crontab-eBay 5 * / sbin/ntpdate 172.16.0.1 & & hwclock-w
4. Turn off the firewall, selinux and NetworkManager
[root@controller1 ~] # systemctl disable firewalld [root@controller1 ~] # systemctl disable NetworkManager [root@controller1 ~] # vim / etc/sysconfig/selinuxSELINUX=disabled
5. Install the yum source of Openstack on all hosts. Be sure to use this source to install related software.
Yum install centos-release-openstack-stein.noarch-y
6. Install Openstack client and selinux package on all hosts
Yum install python-openstackclient openstack-selinux-y
7. Install the database
Install the plug-in for python to connect to the database on the control side, and install the database on another host
[root@controller1 ~] # yum install python2-PyMySQL [root@mysql ~] # yum install mariadb-server
7.2 modify the configuration file of mysql
[root@mysql ~] # vi / etc/my.cnf.d/openstack.cnf
[mysqld] bind-address = 192.168.12.19 default-storage-engine = innodbinnodb_file_per_table = onmax_connections = 4096collation-server = utf8_general_cicharacter-set-server = utf8
7.3. Set to boot and start
[root@mysql ~] # systemctl start mariadb [root@mysql ~] # systemctl enable mariadb
7.4. Security initialization. This database is important. Be sure to set a password to delete anonymous accounts.
[root@mysql ~] # mysql_secure_installation
8. Install rabbitmq on the same server as mysql
Yum install rabbitmq-serversystemctl enable rabbitmq-server.servicesystemctl start rabbitmq-server.service
8.1. Set a password for an openstack account 123
Rabbitmqctl add_user openstack 123
8. 2 give openstack users read and write permissions:
Rabbitmqctl set_permissions openstack ". *"
8.3.Open the web interface of rabbitmq
Rabbitmq-plugins enable rabbitmq_management
8.4. Access the web interface test
9. Install memcached
9.1. The control side installs the python connection memcached plug-in
Yum install python-memcached
Install memcached on the mysql server
Yum install memcached
Vi / etc/sysconfig/memcached
OPTIONS= "- l 0.0.0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. # modify the listening address.
9.3. Set to boot and start
Systemctl enable memcached.servicesystemctl start memcached.service
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.