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

OpenStack-Rocky stand-alone deployment

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

Share

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

1. Installation environment:

Operating system: centos 7.5 address Planning: 192.168.254.10 openstack-server Architecture: all components (including control nodes, compute nodes, network nodes) all install one node

two。 System configuration:

[root@localhost ~] # hostnameopenstack-server [root@openstack-server ~] # vim / etc/hostnameopenstack-server [root@openstack-server ~] # vim / etc/hosts192.168.254.10 openstack-server openstack-server.smoke.com [root@openstack-server ~] # ifconfigenp4s0: flags=4163 mtu 1500 inet 192.168.254.10 netmask 255.255.224 broadcast 192.168.254.31 inet6 fe80::119a:26d0:b028:74d0 prefixlen 64 scopeid 0x20 ether 00:e0:4c:0f:ff:a9 txqueuelen 1000 (Ethernet) RX packets 42277 bytes 39441483 (37.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14912 bytes 1016294 (992.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6:: 1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 32 bytes 2792 (2.7KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 32 bytes 2792 (2.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

3. Install the time synchronization service NTP:

[root@openstack-server ~] # yum install chrony

Modify the chrony service configuration:

[root@openstack-server ~] # vim / etc/chrony.confallow 192.168.254.0

Start the chrony service:

[root@openstack-server ~] # systemctl enable chronyd.service [root@openstack-server ~] # systemctl start chronyd.service

Set the time zone:

[root@openstack-server ~] # timedatectl set-timezone Asia/Shanghai

4. Install Ali's OpenStack source:

[root@openstack-server ~] # vim / etc/yum.repos.d/OpenStack-Rocky.repo [openstack-rocky] name=openstack-rockybaseurl= https://mirrors.aliyun.com/centos/7.5.1804/cloud/x86_64/openstack-rocky/gpgcheck=0gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7repo_gpgcheck=0enabled=1[root@openstack-server ~] # yum clean all [root@openstack-server ~] # yum makecache

You can also use the official Yum source:

[root@openstack-server ~] # yum install centos-release-openstack-rocky [root@openstack-server ~] # yum install https://rdoproject.org/repos/rdo-release.rpm

Upgrade package:

[root@openstack-server ~] # yum-y upgrade

Install OpenStack client:

[root@openstack-server ~] # yum-y install python-openstackclient

Install openstack-selinux:

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

5. Install Mariadb:

[root@openstack-server ~] # yum-y install mariadb mariadb-server python2-PyMySQL

Modify the Mariadb configuration file:

[root@openstack-server ~] # mv / etc/my.cnf / etc/my.cnf.bak [root@openstack-server ~] # cp / usr/share/mariadb/my-large.cnf / etc/my.cnf [root@openstack-server ~] # vim / etc/ my.cnf [mysqld] bind-address = 192.168.254.10default-storage-engine = innodbinnodb_file_per_table = onmax_connections = 4096collation-server = utf8_general_cicharacter-set-server = utf8

Start the Mariadb service:

[root@openstack-server ~] # systemctl enable mariadb.service [root@openstack-server ~] # systemctl start mariadb.service

Initialize Mariadb:

[root@openstack-server ~] # mysql_secure_installation (set root password as prompted)

6. Install rabbitmq-server:

[root@openstack-server ~] # yum-y install rabbitmq-server

Start the rabbitmq-server service:

[root@openstack-server ~] # systemctl enable rabbitmq-server.service [root@openstack-server ~] # systemctl start rabbitmq-server.service

To add an openstack user:

[root@openstack-server ~] # rabbitmqctl add_user openstack openstack [root@openstack-server ~] # rabbitmqctl set_permissions openstack ". *"

Open the web management plug-in:

[root@openstack-server ~] # rabbitmq-plugins enable rabbitmq_management

Use web to access rabbitmq-server (default account guest, password guest):

Set the openstack user Tags to administrator (click Admin-- openstack):

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

Servers

Wechat

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

12
Report