Installation of the OpenStack L version of the basic environment

Source: Internet
Author: User
Tags message queue rabbitmq
OpenStack is in full swing, now the Liberty version has been released, the following step-by-step step-by-Step Introduction to this version of the stand-alone deployment. Of course, if you have multiple servers, you can also follow the tutorial for distributed deployments. This article assumes that the reader has a basic understanding of OpenStack architecture and basic components. First, introduce the installation of the basic environment. The so-called basic environment is the software component necessary to run OpenStack, including NTP service, database and message queue software modules.

The OpenStack installed in this article is based on the Ubuntu 14.04 version, and other operating systems may be slightly different.
1. NTP Service

NTP services are used to provide school-time functionality to ensure consistency of time on each node, and if a single node installation can be considered without installing the software module.

Install NTP service

# Apt-get Install NTP
Configuring NTP Services
The NTP service is used to synchronize the system time and ensure the consistency of each node time. Typically, the control node synchronizes time through a common server, and of course you can use internal servers to synchronize time by modifying the profile/etc/ntp.conf.

Edit the configuration file/etc/ntp.conf, adding the following

Server Ntp_server iburst
restrict-4 default kod notrap nomodify
restrict-6 default Kod notrap nomodify
The actual configuration requires that the Ntp_server be replaced with the server's hostname or IP address.

Restart NTP service

If distributed deployments, you need to install the NTP service in the same way on other nodes and restart the service after modifying the/etc/ntp.conf configuration file. The configuration file needs to comment out the server-related configuration and add one of the following:

Server Controller_ip Iburst

2. OpenStack Package

Update the package installation source to ensure that the OpenStack version installed is Liberty version.

Add OpenStack Installation Source

# apt-get Install ubuntu-cloud-keyring
# echo "Deb Http://ubuntu-cloud.archive.canonical.com/ubuntu" \
" Trusty-updates/liberty main ">/etc/apt/sources.list.d/cloudarchive-liberty.list
Update software version

Apt-get Update && Apt-get dist-upgrade

3. The database

Installing the Configuration database service installation software

<span style= "color: #000000; font-size:8pt;font-style:normal;font-variant:normal;" ># <span style= "color: #000000; font-size:8pt;font-style:normal;font-variant:normal;" ><strong>apt-get Install Mariadb-server python-mysqld</strong></span></span>
You need to set the password during the installation process, and note that the configuration file is modified
Modify configuration file/etc/mysql/my.cnf

Add in [mysqld], or modify the following

Bind-address	= 0.0.0.0
default-storage-engine  = InnoDB
innodb_file_per_table
Collation-server = utf8_general_ci
init-connect = ' SET NAMES utf8 ' character-set-server
= UTF8
Restart the MySQL database service

Service MySQL Restart
Make MySQL security settings
Mysql_secure_installation
The entire installation process takes the default setting, and note that the password is saved. 4. Message Queuing

Message Queuing is used to openstack the interactions between individual components.

Install Rabbitmq-server Software

sudo apt-get install Rabbitmq-server
Configure Rabbitmq-server

sudo rabbitmqctl add_user openstack_rabbit_user openstack_rabbit_password 
sudo rabbitmqctl set_permissions Openstack_rabbit_user ". *" ". *" ". *"
sudo rabbitmqctl delete_user Guest

The user name and password for the above RABBITMQ should be modified as appropriate.

After the foundation environment is completed, the installation of OpenStack specific software can be carried out. The following sections describe the installation of each component individually.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.