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/03 Report--
Part II: Installation of the Base Environment
CentOS 7 system with control node installed
Turn on cpu virtualization for virtual machines before starting installation
Then download the minimal installation iso from:
https://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso
After downloading, load it into ct drive
Then start the virtual machine and the installer will load
Note: do not press enter immediately when installing the startup interface. You need to press tab key or e key.
Add startup parameters net.ifnames=0 biosdevname=0
Press Enter to continue installation
This allows the NIC to be named eth0, eth2, etc. instead of ens292, etc.
Continue to install centos7 system, the specific process will not be described, pay attention to the disk partition, network card configuration, etc. during installation
Disk partitions (using standard partitions)
Configuration of Ethernet card eth0(management network)
Configuration of network card eth2(external network)
Host name set to ct
hostname setting
After installation, connect the control node (ct) with xshell, turn off firewall and selinux, install vim and net-tools, etc.
Finally, check the network settings of the control node
IP settings for control nodes
CentOS 7 system for installing compute nodes
Similarly, turn on compute node cpu virtualization before installing the system
Then, install another CentOS 7 system as a virtual machine of the compute node in the above way, also turn off the firewall and selinux, and finally check its network configuration.
The host name is c1, the ip address of eth0 is 192.168.10.42, and the ip address of eth2 is 10.8.20.42.
Network settings for compute node (c1)
Testing connectivity between internal and external networks
Add host resolution to hosts files of control nodes and compute nodes
vim /etc/hosts
Add:
192.168.10.41 ct
192.168.10.42 c1
After adding it, ping it with the host name to test whether the resolution is successful
ping ct
ping c1
PS: Make sure that both hosts can ping with the hostname before you can proceed to the following operation.
Installation time synchronization
control node
yum install chrony -y
vim /etc/chrony.conf
Modify the following 2 lines
server ntp.aliyun.com iburst
allow 192.168.10.0/24
systemctl restart chronyd
systemctl enable chronyd
computing node
yum install chrony -y
vim /etc/chrony.conf
Server is modified to IP or hostname of the control node:
server 192.168.10.41 iburst
systemctl restart chronyd
systemctl enable chronyd
chronyc sources
clock -w
Install openstack source, control node and compute node are executed
yum install centos-release-openstack-train -y
yum upgrade -y
yum install python-openstackclient -y
yum install openstack-selinux -y
After installation, close the xshell connection to the compute node.
The following installations are performed on control nodes only
install the database
yum install mariadb mariadb-server python2-PyMySQL -y
vim /etc/my.cnf.d/openstack.cnf
Add:
[mysqld]
bind-address = 192.168.10.41
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
systemctl enable mariadb.service
systemctl start mariadb.service
mysql_secure_installation (this step must be done, otherwise the database will not be filled when installing the service later)
Install Message Queue Services
yum install rabbitmq-server -y
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
rabbitmqctl add_user openstack RABBIT_PASS
rabbitmqctl set_permissions openstack ".* " ".* " ".* "
After installation, use netstat -tnlup to check, if there are ports 25672 and 5672 shown in the figure below, the installation is successful.
Install memcache
yum install memcached python-memcached -y
vim /etc/sysconfig/memcached
Add ct in the line below
OPTIONS="-l 127.0.0.1,::1,ct"
systemctl enable memcached.service
systemctl start memcached.service
After installation and startup, also use netstat -tnlup to check the port situation. If you see that there is a program listening on port 11211, it means memcache installation is successful.
Note that one of the IP addresses must be 192.168.10.41
Install etcd
yum install etcd -y
vim /etc/etcd/etcd.conf
Change 9 lines:
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.10.41:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.10.41:2379"
ETCD_NAME="ct"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.10.41:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.10.41:2379"
ETCD_INITIAL_CLUSTER="ct=http://192.168.10.41:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"
systemctl enable etcd
systemctl start etcd
After installation and startup, also use netstat -tnlup to check the port situation. If you see programs listening on ports 2379 and 2380, it means that etcd installation is successful.
At this point, the basic service has been installed, and the next section begins to install Openstack's identity authentication service keystone.
OpenStack Train version dual-node installation notes (II)
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.