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

How does CentOS7.2 deploy the OpenStack environment

2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how CentOS7.2 deploys the OpenStack environment". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how CentOS7.2 deploys the OpenStack environment".

1. System environment

# uname-r

3.10.0-327.el7.x86_64

# cat / etc/redhat-release

Centos linux release 7.2.1511 (core)

2. Server deployment

3. Basic environmental preparation

3.1.Configuring hosts

# cat / etc/hosts192.168.56.108 controller192.168.56.109 compute

3.2. Configure time synchronization

[root@controller ~] # yum install-y ntp [root@controller ~] # vim / etc/ntp.conf15 restrict-6:: 116 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap27 restrict 0.centos.pool.ntp.org nomodify notrap noquery28 restrict 1.centos.pool.ntp.org nomodify notrap noquery29 restrict 2.centos.pool.ntp.org nomodify notrap noquery30 restrict 3.centos.pool.ntp.org nomodify notrap noquery31 server 127.127.1.032 fudge 127.127.1.0 stratum 10 [root@controller ~] # systemctl enable ntpd [root@controller ~] # systemctl start ntpd

Configure timing tasks in control nodes and compute nodes

[root@compute] # crontab-l * / 5 * / usr/sbin/ntpdate 192.168.56.108 > / dev/null 2 > & 1

3.3. Turn off the firewall

# systemctl stop firewalld

3.4. turn off selinux

# selinux=disabled / etc/selinux/config / / need to restart

3.5. Install the basic package

[root@controller ~] # yum install-y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm[root@controller ~] # yum install-y centos-release-openstack-liberty [root@controller ~] # yum install-y python-openstackclient

3.6. install mysql

[root@controller ~] # yum install-y mariadb mariadb-server mysql-python [root@controller ~] # vim / etc/my.cnf

Add the following lines to the mysqld module:

Default-storage-engine = innodbinnodb_file_per_tablecollation-server = utf8_general_ci init-connect = 'set names utf8'character-set-server = utf8 [root@controller ~] # systemctl enable mariadb.service [root@controller ~] # systemctl start mariadb.service [root@controller ~] # mysql_secure_installation

3.7. install rabbitmq

[root@controller ~] # yum install-y rabbitmq-server [root@controller ~] # systemctl enable rabbitmq-server.service [root@controller ~] # systemctl start rabbitmq-server.service [root@controller ~] # rabbitmqctl add_user openstack openstackcreating user "openstack" .done. [root@controller ~] # rabbitmqctl set_permissions openstack'. * 'setting permissions for user "openstack" in vhost "/". Done. [root@controller ~] # rabbitmqctl set_user_tags openstack administrator [root@controller ~] # rabbitmq-plugins enable rabbitmq_ management [root @ controller ~] # systemctl restart rabbitmq-server.service

Enter http://192.168.56.108:15672 in the browser. The default account and password is guest.

After logging in, add the previously created openstack user to the admin, and the result is as follows:

Thank you for reading, the above is the content of "how CentOS7.2 deploys OpenStack environment". After the study of this article, I believe you have a deeper understanding of how CentOS7.2 deploys OpenStack environment, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Development

Wechat

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

12
Report