Ubuntu Configuration OpenStack II: Configure time synchronization NTP and install database MARIDB and issues summary

Source: Internet
Author: User

following the previous section of Ubuntu configuration OpenStack One: Configure the host environment, continue to synchronize for installation time, and configure OpenStack's package source and install database Maridb. (The full text is done by hand-built and)

First section connecting the configuration host environment http://www.cnblogs.com/skylarzhan/p/7702078.html

One, the installation time synchronization NTP

NTP (Network time Protocol) is a protocol used to keep the time synchronization of individual computers in the network, and NTP clients can be consistent with the computer time of the NTP server, and the cloud environment can be distributed with multiple host nodes. Requires consistency of time for each node.

Configure time synchronization to complete the configuration controller time synchronization, the remaining two virtual machine time synchronization directly by the controller.

1. Install NTP time synchronization apt-get install NTP

2, delete the/var/lib/ntp/ntp.conf.dhcp file (rm/var/lib/ntp/ntp.conf.dhcp), otherwise the configuration within this file will be used, but the display of this file in my machine does not exist, so we consider that it has been deleted successfully.

3. Parameter understanding

The Iburst parameter speeds up synchronous operation at initialization time

Restrict <ip address > < subnet mask > |< network segment > < subnet mask > [Ignore|noquery|notrap|nomodiy|notrust|nokod]

Ignore: Turn off all NTP services Noquery: Do not provide NTP service

Nopeer: No time synchronization with other NTP servers on the same layer

Notrap: does not provide the ability to trap remote event logins

Nomodiy: Indicates that the client cannot change the time parameters of the NTP server, but can be corrected by the NTP server

Notrust: Deny clients that are not authenticated

Nokod:kod technology can prevent a DOS attack

4, modify the controller in the/etc/ntp.conf file (vi/etc/ntp.conf Open file, remember to get root permissions)

after opening the file, you must first delete the four statements of the server in its file (such as: Server [IP or hostname] [prefer], server is used to set the upper layer NTP server), and then add the following three, The first URL to synchronize time. And then pull it down .

Add the following four words, the IP address is the IP address of the other two virtual machines, you have to refer to their own IP address modification.

5. Configure the other two server controller Ibrust

Delete the four sentences that are connected to the server, and then add the

5. Restart NTP and client Synchronization service NTP restart or/etc/init.d/ntp restart

6, calibration time synchronization of the installation

Controller Node&&other Node

-ntpq-c peers

-ntpq-c Assoc

Second, configure the OpenStack installation package source

1. Configure the Internet package source ( install Ubuntu Cloud Archive Keyring and repository )

# Apt-get Install ubuntu-cloud-keyring

# echo "Deb Http://ubuntu-cloud.archive.canonical.com/ubuntu" \

"Trusty-updates/kilo main" >/etc/apt/sources.list.d/cloudarchive-kilo.

List

2. Upgrade the System ( apt-get update && apt-get dist-upgrade )

Third, install the database maridb

MARIADB database management System is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL licensing MARIADB is fully compatible with MySQL, including the API and command line, so that it can easily become a substitute for MySQL.

MARIADB, led by MySQL's founder Michael Widenius, sold his company, MySQL AB, to Sun for $1 billion earlier, and since Sun was acquired by Oracle, MySQL's ownership also fell into Oracle's hands. Mariadb name comes from Michael Widenius's daughter Maria's name.

1. Install the database

-apt-get Install Mariadb-server Python-mysqldb

Enter password

2. Create and edit/etc/mysql/conf.d/mysqld_openstack.cnf

Input

Cd/etc/mysql/conf.d

Ls

Vi/mysqld_openstack.cnf

Write and save in an open file

"Parameter configuration explained:

-bind-address Setting the host address that allows remote access to the database

Storage engine used by the-default-storage-engine database

-utf8_general_ci performance is better than utf8_unicode_ci

    • Innodb_file_per_table parameter modification InnoDB to stand-alone tablespace mode
    • Character-set-server specifying the character set used by the database
    • INIT-CONNECT Specifies the command to run when a client connects
    • Collation-server specifying the character sorting and checking methods for a database

Restart database service after completion MySQL restart

3, increase the security of the database (mysql_secure_installation)

Enter execution there are a few actions

-Set the password for the root user
-Delete Anonymous Account
-Remove Root User Login
-Delete the test library and access to the test library
-Refresh the authorization form for the changes to take effect

-Set the password for the root user

-Delete Anonymous Account

-Remove Root User Login

-Delete the test library and access to the test library

-Refresh the authorization form for the changes to take effect

Iv. Summary of issues

Note: do everything in root

1, most of the errors will not appear in the update or installation, the cause of the error may be that you entered the wrong. There are many errors in the configuration process, so pay extra attention to the configured parameters. In the previous article, I was configuring a step-by-step environment when the IP address configuration often went wrong. In this article, in the configuration ntp.cpnf, I forgot to delete the original server-set marketplace server and forgot to add NTP URLs, which caused my configuration to be unsuccessful.

2, more than one virtual machine at the same time to install, to remember the good execution steps, if missing one step, it will be possible to error;

For example

This error occurs because I did not perform this step # echo "Deb Http://ubuntu-cloud.archive.canonical.com/ubuntu" \ "Trusty-updates/kilo main" >/etc/apt/ Sources.list.d/cloudarchive-kilo.list and error.

Ubuntu Configuration OpenStack II: Configure time synchronization NTP and install database MARIDB and issues summary

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.