暂无图片
暂无图片
8
暂无图片
暂无图片
暂无图片

openGauss5.0.0企业版一主一备一级联安装指南

原创 孙莹 2023-04-01
3548

openGauss5.0.0于2023年3月31日正式发布,本文基于openGauss5.0.0企业版在centos_x86_64操作系统上搭建一主一备一级联测试环境,并将操作记录共享出来,希望能帮到有需要的小伙伴

https://www.opengauss.org/zh/news/2023-03-31/
5.jpg

1.准备软硬件安装环境

准备三台硬件环境:虚拟机2核心CPU,4GB内存,60G硬盘

检查CPU核心

cat /proc/cpuinfo | grep processor

检查内存大小

free -h

检查操作系统版本

cat /etc/centos-release

操作系统环境:CentOS7.9

下载地址:https://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/

以CentOS操作系统为例,主机信息如下表所示

主机名称 IP地址
node1 192.168.17.6
node2 192.168.17.7
node3 192.168.17.8

openGauss5.0.0企业版安装包:openGauss-5.0.0-CentOS-64bit-all.tar.gz

下载地址:https://www.opengauss.org/zh/download/

openGauss Server 选择操作系统与架构:Centos 7.6 (x86_64)

2.修改/etc/hosts

设置3台虚拟机主机名

[root@centos7 ~]# hostnamectl set-hostname node1
[root@centos7 ~]# hostnamectl set-hostname node2
[root@centos7 ~]# hostnamectl set-hostname node3

检查主机名和IP地址是否配置正确,需要配置主机名和IP地址

hostname && ifconfig |grep broadcast|awk '{print $2}'

3台虚拟机添加对应主机名和IP地址

echo "192.168.17.6 node1 ##openGauss OM IP Hosts Mapping" >>/etc/hosts echo "192.168.17.7 node2 ##openGauss OM IP Hosts Mapping" >>/etc/hosts echo "192.168.17.8 node3 ##openGauss OM IP Hosts Mapping" >>/etc/hosts echo -e "\n" >>/etc/hosts
[root@node1 ~]# echo "192.168.17.6 node1 ##openGauss OM IP Hosts Mapping" >>/etc/hosts [root@node1 ~]# echo "192.168.17.7 node2 ##openGauss OM IP Hosts Mapping" >>/etc/hosts [root@node1 ~]# echo "192.168.17.8 node3 ##openGauss OM IP Hosts Mapping" >>/etc/hosts [root@node1 ~]# echo -e "\n" >>/etc/hosts [root@node1 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.17.6 node1 ##openGauss OM IP Hosts Mapping 192.168.17.7 node2 ##openGauss OM IP Hosts Mapping 192.168.17.8 node3 ##openGauss OM IP Hosts Mapping [root@node1 ~]#

3.关闭防火墙和关闭SELINUX

3台虚拟机停止firewall,禁止firewall开机启动

systemctl stop firewalld.service
systemctl disable firewalld.service

3台虚拟机关闭selinux

sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0

4.设置字符集参数,设置时区和时间

3台虚拟机设置字符集

cat>> /etc/profile<<EOF export LANG=en_US.UTF-8 EOF
[root@node1 ~]# cat>> /etc/profile<<EOF > export LANG=en_US.UTF-8 > EOF [root@node1 ~]# [root@node2 ~]# cat>> /etc/profile<<EOF > export LANG=en_US.UTF-8 > EOF [root@node2 ~]# [root@node3 ~]# cat>> /etc/profile<<EOF > export LANG=en_US.UTF-8 > EOF [root@node3 ~]#

3台虚拟机设置时区和时间

timedatectl set-timezone Asia/Shanghai ntpdate ntp1.aliyun.com
[root@node1 ~]# timedatectl set-timezone Asia/Shanghai
[root@node1 ~]# ntpdate ntp1.aliyun.com
 1 Apr 21:07:53 ntpdate[2509]: adjust time server 120.25.115.20 offset -0.001411 sec
[root@node1 ~]#

[root@node2 ~]# timedatectl set-timezone Asia/Shanghai
[root@node2 ~]# ntpdate ntp1.aliyun.com
 1 Apr 21:07:56 ntpdate[3759]: adjust time server 120.25.115.20 offset 0.000676 sec
[root@node2 ~]#

[root@node3 ~]# timedatectl set-timezone Asia/Shanghai
[root@node3 ~]# ntpdate ntp1.aliyun.com
 1 Apr 21:07:59 ntpdate[3804]: adjust time server 120.25.115.20 offset -0.006381 sec
[root@node3 ~]# 

5.关闭swap交换内存

临时关闭swap

swapoff -a

修改分区表文件,删除swap mount信息

cp /etc/fstab /etc/fstab.bak sed -i '/swap/s/^/#/' /etc/fstab cat /etc/fstab|grep -v ^#|grep -v '^$'
[root@node1 ~]# swapoff -a [root@node1 ~]# cp /etc/fstab /etc/fstab.bak [root@node1 ~]# sed -i '/swap/s/^/#/' /etc/fstab [root@node1 ~]# cat /etc/fstab|grep -v ^#|grep -v '^$' /dev/mapper/centos-root / xfs defaults 0 0 UUID=296fd0b6-59a9-42eb-a04a-6c475e553c35 /boot xfs defaults 0 0 [root@node1 ~]# [root@node2 ~]# swapoff -a [root@node2 ~]# cp /etc/fstab /etc/fstab.bak [root@node2 ~]# sed -i '/swap/s/^/#/' /etc/fstab [root@node2 ~]# cat /etc/fstab|grep -v ^#|grep -v '^$' /dev/mapper/centos-root / xfs defaults 0 0 UUID=296fd0b6-59a9-42eb-a04a-6c475e553c35 /boot xfs defaults 0 0 [root@node2 ~]# [root@node3 ~]# swapoff -a [root@node3 ~]# cp /etc/fstab /etc/fstab.bak [root@node3 ~]# sed -i '/swap/s/^/#/' /etc/fstab [root@node3 ~]# cat /etc/fstab|grep -v ^#|grep -v '^$' /dev/mapper/centos-root / xfs defaults 0 0 UUID=296fd0b6-59a9-42eb-a04a-6c475e553c35 /boot xfs defaults 0 0 [root@node3 ~]#

6.设置root用户远程登录

配置SSH服务(允许root登录,关闭Banner)

sed -i '/Banner/s/^/#/' /etc/ssh/sshd_config sed -i '/PermitRootLogin/s/^/#/' /etc/ssh/sshd_config echo -e "\n" >> /etc/ssh/sshd_config echo "Banner none " >> /etc/ssh/sshd_config echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

重启服务使设置生效

systemctl restart sshd.service
[root@node1 ~]# sed -i '/Banner/s/^/#/' /etc/ssh/sshd_config [root@node1 ~]# sed -i '/PermitRootLogin/s/^/#/' /etc/ssh/sshd_config [root@node1 ~]# echo -e "\n" >> /etc/ssh/sshd_config [root@node1 ~]# echo "Banner none " >> /etc/ssh/sshd_config [root@node1 ~]# echo "PermitRootLogin yes" >> /etc/ssh/sshd_config [root@node1 ~]# systemctl restart sshd.service [root@node1 ~]# [root@node2 ~]# sed -i '/Banner/s/^/#/' /etc/ssh/sshd_config [root@node2 ~]# sed -i '/PermitRootLogin/s/^/#/' /etc/ssh/sshd_config [root@node2 ~]# echo -e "\n" >> /etc/ssh/sshd_config [root@node2 ~]# echo "Banner none " >> /etc/ssh/sshd_config [root@node2 ~]# echo "PermitRootLogin yes" >> /etc/ssh/sshd_config [root@node2 ~]# systemctl restart sshd.service [root@node2 ~]# [root@node3 ~]# sed -i '/Banner/s/^/#/' /etc/ssh/sshd_config [root@node3 ~]# sed -i '/PermitRootLogin/s/^/#/' /etc/ssh/sshd_config [root@node3 ~]# echo -e "\n" >> /etc/ssh/sshd_config [root@node3 ~]# echo "Banner none " >> /etc/ssh/sshd_config [root@node3 ~]# echo "PermitRootLogin yes" >> /etc/ssh/sshd_config [root@node3 ~]# systemctl restart sshd.service [root@node3 ~]#

7.配置操作系统参数

3台虚拟机修改内核参数,并使其生效,注意执行完后可能会输出很多文件或目录不存在可以忽略重启后就正常了

cat >> /etc/sysctl.conf << EOF net.ipv4.tcp_max_tw_buckets = 10000 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_keepalive_time = 30 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_retries1 = 5 net.ipv4.tcp_syn_retries = 5 net.ipv4.tcp_synack_retries = 5 net.sctp.path_max_retrans = 10 net.sctp.max_init_retransmits = 10 net.sctp.association_max_retrans = 10 net.sctp.hb_interval = 30000 net.ipv4.tcp_retries2 = 12 vm.overcommit_memory = 0 net.sctp.sndbuf_policy = 0 net.sctp.rcvbuf_policy = 0 net.sctp.sctp_mem = 94500000 915000000 927000000 net.sctp.sctp_rmem = 8192 250000 16777216 net.sctp.sctp_wmem = 8192 250000 16777216 net.ipv4.tcp_rmem = 8192 250000 16777216 net.ipv4.tcp_wmem = 8192 250000 16777216 net.core.wmem_max = 21299200 net.core.rmem_max = 21299200 net.core.wmem_default = 21299200 net.core.rmem_default = 21299200 net.ipv4.ip_local_port_range = 26000 65535 kernel.sem = 250 6400000 1000 25600 vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% net.core.somaxconn = 65535 net.ipv4.tcp_syncookies = 1 net.sctp.addip_enable = 0 net.core.netdev_max_backlog = 65535 net.ipv4.tcp_max_syn_backlog = 65535 net.ipv4.tcp_fin_timeout = 60 kernel.shmall = 1152921504606846720 kernel.shmmax = 18446744073709551615 net.ipv4.tcp_sack = 1 net.ipv4.tcp_timestamps = 1 vm.extfrag_threshold = 500 vm.overcommit_ratio = 90 net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 net.sctp.sctp_mem = 94500000 915000000 927000000 net.sctp.sctp_rmem = 8192 250000 16777216 net.sctp.sctp_wmem = 8192 250000 16777216 EOF sysctl -p
[root@node1 ~]# cat >> /etc/sysctl.conf << EOF > net.ipv4.tcp_max_tw_buckets = 10000 > net.ipv4.tcp_tw_reuse = 1 > net.ipv4.tcp_tw_recycle = 1 > net.ipv4.tcp_keepalive_time = 30 > net.ipv4.tcp_keepalive_probes = 9 > net.ipv4.tcp_keepalive_intvl = 30 > net.ipv4.tcp_retries1 = 5 > net.ipv4.tcp_syn_retries = 5 > net.ipv4.tcp_synack_retries = 5 > net.sctp.path_max_retrans = 10 > net.sctp.max_init_retransmits = 10 > net.sctp.association_max_retrans = 10 > net.sctp.hb_interval = 30000 > net.ipv4.tcp_retries2 = 12 > vm.overcommit_memory = 0 > net.sctp.sndbuf_policy = 0 > net.sctp.rcvbuf_policy = 0 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > net.ipv4.tcp_rmem = 8192 250000 16777216 > net.ipv4.tcp_wmem = 8192 250000 16777216 > net.core.wmem_max = 21299200 > net.core.rmem_max = 21299200 > net.core.wmem_default = 21299200 > net.core.rmem_default = 21299200 > net.ipv4.ip_local_port_range = 26000 65535 > kernel.sem = 250 6400000 1000 25600 > vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% > net.core.somaxconn = 65535 > net.ipv4.tcp_syncookies = 1 > net.sctp.addip_enable = 0 > net.core.netdev_max_backlog = 65535 > net.ipv4.tcp_max_syn_backlog = 65535 > net.ipv4.tcp_fin_timeout = 60 > kernel.shmall = 1152921504606846720 > kernel.shmmax = 18446744073709551615 > net.ipv4.tcp_sack = 1 > net.ipv4.tcp_timestamps = 1 > vm.extfrag_threshold = 500 > vm.overcommit_ratio = 90 > net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > > EOF [root@node1 ~]# [root@node1 ~]# sysctl -p net.ipv4.tcp_max_tw_buckets = 10000 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_keepalive_time = 30 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_retries1 = 5 net.ipv4.tcp_syn_retries = 5 net.ipv4.tcp_synack_retries = 5 sysctl: cannot stat /proc/sys/net/sctp/path_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/max_init_retransmits: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/association_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/hb_interval: No such file or directory net.ipv4.tcp_retries2 = 12 vm.overcommit_memory = 0 sysctl: cannot stat /proc/sys/net/sctp/sndbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/rcvbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory net.ipv4.tcp_rmem = 8192 250000 16777216 net.ipv4.tcp_wmem = 8192 250000 16777216 net.core.wmem_max = 21299200 net.core.rmem_max = 21299200 net.core.wmem_default = 21299200 net.core.rmem_default = 21299200 net.ipv4.ip_local_port_range = 26000 65535 kernel.sem = 250 6400000 1000 25600 vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% net.core.somaxconn = 65535 net.ipv4.tcp_syncookies = 1 sysctl: cannot stat /proc/sys/net/sctp/addip_enable: No such file or directory net.core.netdev_max_backlog = 65535 net.ipv4.tcp_max_syn_backlog = 65535 net.ipv4.tcp_fin_timeout = 60 kernel.shmall = 1152921504606846720 kernel.shmmax = 18446744073709551615 net.ipv4.tcp_sack = 1 net.ipv4.tcp_timestamps = 1 vm.extfrag_threshold = 500 vm.overcommit_ratio = 90 net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory [root@node1 ~]# [root@node2 ~]# cat >> /etc/sysctl.conf << EOF > net.ipv4.tcp_max_tw_buckets = 10000 > net.ipv4.tcp_tw_reuse = 1 > net.ipv4.tcp_tw_recycle = 1 > net.ipv4.tcp_keepalive_time = 30 > net.ipv4.tcp_keepalive_probes = 9 > net.ipv4.tcp_keepalive_intvl = 30 > net.ipv4.tcp_retries1 = 5 > net.ipv4.tcp_syn_retries = 5 > net.ipv4.tcp_synack_retries = 5 > net.sctp.path_max_retrans = 10 > net.sctp.max_init_retransmits = 10 > net.sctp.association_max_retrans = 10 > net.sctp.hb_interval = 30000 > net.ipv4.tcp_retries2 = 12 > vm.overcommit_memory = 0 > net.sctp.sndbuf_policy = 0 > net.sctp.rcvbuf_policy = 0 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > net.ipv4.tcp_rmem = 8192 250000 16777216 > net.ipv4.tcp_wmem = 8192 250000 16777216 > net.core.wmem_max = 21299200 > net.core.rmem_max = 21299200 > net.core.wmem_default = 21299200 > net.core.rmem_default = 21299200 > net.ipv4.ip_local_port_range = 26000 65535 > kernel.sem = 250 6400000 1000 25600 > vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% > net.core.somaxconn = 65535 > net.ipv4.tcp_syncookies = 1 > net.sctp.addip_enable = 0 > net.core.netdev_max_backlog = 65535 > net.ipv4.tcp_max_syn_backlog = 65535 > net.ipv4.tcp_fin_timeout = 60 > kernel.shmall = 1152921504606846720 > kernel.shmmax = 18446744073709551615 > net.ipv4.tcp_sack = 1 > net.ipv4.tcp_timestamps = 1 > vm.extfrag_threshold = 500 > vm.overcommit_ratio = 90 > net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > > EOF [root@node2 ~]# [root@node2 ~]# sysctl -p net.ipv4.tcp_max_tw_buckets = 10000 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_keepalive_time = 30 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_retries1 = 5 net.ipv4.tcp_syn_retries = 5 net.ipv4.tcp_synack_retries = 5 sysctl: cannot stat /proc/sys/net/sctp/path_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/max_init_retransmits: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/association_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/hb_interval: No such file or directory net.ipv4.tcp_retries2 = 12 vm.overcommit_memory = 0 sysctl: cannot stat /proc/sys/net/sctp/sndbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/rcvbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory net.ipv4.tcp_rmem = 8192 250000 16777216 net.ipv4.tcp_wmem = 8192 250000 16777216 net.core.wmem_max = 21299200 net.core.rmem_max = 21299200 net.core.wmem_default = 21299200 net.core.rmem_default = 21299200 net.ipv4.ip_local_port_range = 26000 65535 kernel.sem = 250 6400000 1000 25600 vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% net.core.somaxconn = 65535 net.ipv4.tcp_syncookies = 1 sysctl: cannot stat /proc/sys/net/sctp/addip_enable: No such file or directory net.core.netdev_max_backlog = 65535 net.ipv4.tcp_max_syn_backlog = 65535 net.ipv4.tcp_fin_timeout = 60 kernel.shmall = 1152921504606846720 kernel.shmmax = 18446744073709551615 net.ipv4.tcp_sack = 1 net.ipv4.tcp_timestamps = 1 vm.extfrag_threshold = 500 vm.overcommit_ratio = 90 net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory [root@node2 ~]# [root@node3 ~]# cat >> /etc/sysctl.conf << EOF > net.ipv4.tcp_max_tw_buckets = 10000 > net.ipv4.tcp_tw_reuse = 1 > net.ipv4.tcp_tw_recycle = 1 > net.ipv4.tcp_keepalive_time = 30 > net.ipv4.tcp_keepalive_probes = 9 > net.ipv4.tcp_keepalive_intvl = 30 > net.ipv4.tcp_retries1 = 5 > net.ipv4.tcp_syn_retries = 5 > net.ipv4.tcp_synack_retries = 5 > net.sctp.path_max_retrans = 10 > net.sctp.max_init_retransmits = 10 > net.sctp.association_max_retrans = 10 > net.sctp.hb_interval = 30000 > net.ipv4.tcp_retries2 = 12 > vm.overcommit_memory = 0 > net.sctp.sndbuf_policy = 0 > net.sctp.rcvbuf_policy = 0 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > net.ipv4.tcp_rmem = 8192 250000 16777216 > net.ipv4.tcp_wmem = 8192 250000 16777216 > net.core.wmem_max = 21299200 > net.core.rmem_max = 21299200 > net.core.wmem_default = 21299200 > net.core.rmem_default = 21299200 > net.ipv4.ip_local_port_range = 26000 65535 > kernel.sem = 250 6400000 1000 25600 > vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% > net.core.somaxconn = 65535 > net.ipv4.tcp_syncookies = 1 > net.sctp.addip_enable = 0 > net.core.netdev_max_backlog = 65535 > net.ipv4.tcp_max_syn_backlog = 65535 > net.ipv4.tcp_fin_timeout = 60 > kernel.shmall = 1152921504606846720 > kernel.shmmax = 18446744073709551615 > net.ipv4.tcp_sack = 1 > net.ipv4.tcp_timestamps = 1 > vm.extfrag_threshold = 500 > vm.overcommit_ratio = 90 > net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 > net.sctp.sctp_mem = 94500000 915000000 927000000 > net.sctp.sctp_rmem = 8192 250000 16777216 > net.sctp.sctp_wmem = 8192 250000 16777216 > > EOF [root@node3 ~]# [root@node3 ~]# sysctl -p net.ipv4.tcp_max_tw_buckets = 10000 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_keepalive_time = 30 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_retries1 = 5 net.ipv4.tcp_syn_retries = 5 net.ipv4.tcp_synack_retries = 5 sysctl: cannot stat /proc/sys/net/sctp/path_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/max_init_retransmits: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/association_max_retrans: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/hb_interval: No such file or directory net.ipv4.tcp_retries2 = 12 vm.overcommit_memory = 0 sysctl: cannot stat /proc/sys/net/sctp/sndbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/rcvbuf_policy: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory net.ipv4.tcp_rmem = 8192 250000 16777216 net.ipv4.tcp_wmem = 8192 250000 16777216 net.core.wmem_max = 21299200 net.core.rmem_max = 21299200 net.core.wmem_default = 21299200 net.core.rmem_default = 21299200 net.ipv4.ip_local_port_range = 26000 65535 kernel.sem = 250 6400000 1000 25600 vm.min_free_kbytes = 419430 ##suggest to set as physical memory * 5% net.core.somaxconn = 65535 net.ipv4.tcp_syncookies = 1 sysctl: cannot stat /proc/sys/net/sctp/addip_enable: No such file or directory net.core.netdev_max_backlog = 65535 net.ipv4.tcp_max_syn_backlog = 65535 net.ipv4.tcp_fin_timeout = 60 kernel.shmall = 1152921504606846720 kernel.shmmax = 18446744073709551615 net.ipv4.tcp_sack = 1 net.ipv4.tcp_timestamps = 1 vm.extfrag_threshold = 500 vm.overcommit_ratio = 90 net.ipv4.ip_local_reserved_ports = 20050-20057,26000-26007 sysctl: cannot stat /proc/sys/net/sctp/sctp_mem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_rmem: No such file or directory sysctl: cannot stat /proc/sys/net/sctp/sctp_wmem: No such file or directory [root@node3 ~]#

8.修改操作系统资源限制,关闭透明页

3台虚拟机配置文件系统参数、文件句柄设置、系统支持的最大进程数设置、网卡参数配置

echo "* soft stack 3072" >> /etc/security/limits.conf echo "* hard stack 3072" >> /etc/security/limits.conf echo "* soft nofile 1000000" >> /etc/security/limits.conf echo "* hard nofile 1000000" >> /etc/security/limits.conf echo "* soft nproc unlimited" >> /etc/security/limits.d/90-nproc.conf tail -n 4 /etc/security/limits.conf tail -n 1 /etc/security/limits.d/90-nproc.conf

临时关闭透明页

echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag

编译grub,内核层面关闭透明页

sed -i '/^GRUB_CMDLINE_LINUX/d' /etc/default/grub echo "GRUB_CMDLINE_LINUX=\"rhgb quiet transparent_hugepage=never\"" >> /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg
[root@node1 ~]# echo "* soft stack 3072" >> /etc/security/limits.conf [root@node1 ~]# echo "* hard stack 3072" >> /etc/security/limits.conf [root@node1 ~]# echo "* soft nofile 1000000" >> /etc/security/limits.conf [root@node1 ~]# echo "* hard nofile 1000000" >> /etc/security/limits.conf [root@node1 ~]# echo "* soft nproc unlimited" >> /etc/security/limits.d/90-nproc.conf [root@node1 ~]# tail -n 4 /etc/security/limits.conf * soft stack 3072 * hard stack 3072 * soft nofile 1000000 * hard nofile 1000000 [root@node1 ~]# tail -n 1 /etc/security/limits.d/90-nproc.conf * soft nproc unlimited [root@node1 ~]# echo never > /sys/kernel/mm/transparent_hugepage/enabled [root@node1 ~]# echo never > /sys/kernel/mm/transparent_hugepage/defrag [root@node1 ~]# sed -i '/^GRUB_CMDLINE_LINUX/d' /etc/default/grub [root@node1 ~]# echo "GRUB_CMDLINE_LINUX=\"rhgb quiet transparent_hugepage=never\"" >> /etc/default/grub [root@node1 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-1160.71.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.71.1.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-01853160a0d2448d895e2a5dabfb29e6 Found initrd image: /boot/initramfs-0-rescue-01853160a0d2448d895e2a5dabfb29e6.img done [root@node1 ~]# [root@node2 ~]# echo "* soft stack 3072" >> /etc/security/limits.conf [root@node2 ~]# echo "* hard stack 3072" >> /etc/security/limits.conf [root@node2 ~]# echo "* soft nofile 1000000" >> /etc/security/limits.conf [root@node2 ~]# echo "* hard nofile 1000000" >> /etc/security/limits.conf [root@node2 ~]# echo "* soft nproc unlimited" >> /etc/security/limits.d/90-nproc.conf [root@node2 ~]# tail -n 4 /etc/security/limits.conf * soft stack 3072 * hard stack 3072 * soft nofile 1000000 * hard nofile 1000000 [root@node2 ~]# tail -n 1 /etc/security/limits.d/90-nproc.conf * soft nproc unlimited [root@node2 ~]# echo never > /sys/kernel/mm/transparent_hugepage/enabled [root@node2 ~]# echo never > /sys/kernel/mm/transparent_hugepage/defrag [root@node2 ~]# sed -i '/^GRUB_CMDLINE_LINUX/d' /etc/default/grub [root@node2 ~]# echo "GRUB_CMDLINE_LINUX=\"rhgb quiet transparent_hugepage=never\"" >> /etc/default/grub [root@node2 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-1160.71.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.71.1.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-01853160a0d2448d895e2a5dabfb29e6 Found initrd image: /boot/initramfs-0-rescue-01853160a0d2448d895e2a5dabfb29e6.img done [root@node2 ~]# [root@node3 ~]# echo "* soft stack 3072" >> /etc/security/limits.conf [root@node3 ~]# echo "* hard stack 3072" >> /etc/security/limits.conf [root@node3 ~]# echo "* soft nofile 1000000" >> /etc/security/limits.conf [root@node3 ~]# echo "* hard nofile 1000000" >> /etc/security/limits.conf [root@node3 ~]# echo "* soft nproc unlimited" >> /etc/security/limits.d/90-nproc.conf [root@node3 ~]# tail -n 4 /etc/security/limits.conf * soft stack 3072 * hard stack 3072 * soft nofile 1000000 * hard nofile 1000000 [root@node3 ~]# tail -n 1 /etc/security/limits.d/90-nproc.conf * soft nproc unlimited [root@node3 ~]# echo never > /sys/kernel/mm/transparent_hugepage/enabled [root@node3 ~]# echo never > /sys/kernel/mm/transparent_hugepage/defrag [root@node3 ~]# sed -i '/^GRUB_CMDLINE_LINUX/d' /etc/default/grub [root@node3 ~]# echo "GRUB_CMDLINE_LINUX=\"rhgb quiet transparent_hugepage=never\"" >> /etc/default/grub [root@node3 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-1160.71.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.71.1.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-01853160a0d2448d895e2a5dabfb29e6 Found initrd image: /boot/initramfs-0-rescue-01853160a0d2448d895e2a5dabfb29e6.img done [root@node3 ~]#

9.创建用户以及组(可选)和手工建立互信(可选)

3台虚拟机创建omm用户以及dbgrp组

groupadd dbgrp useradd -g dbgrp -m omm echo omm | passwd --stdin omm

生成密钥

mkdir ~/.ssh chmod 700 ~/.ssh ssh-keygen -t rsa ssh-keygen -t dsa

生成本机授权文件

cat ~/.ssh/id_rsa.pub >> ./.ssh/authorized_keys cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

收集公钥互信文件分发

ssh node1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh node1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys scp ~/.ssh/authorized_keys node1:~/.ssh/authorized_keys ssh node2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh node2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys ssh node3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh node3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys scp ~/.ssh/authorized_keys node3:~/.ssh/authorized_keys exec /usr/bin/ssh-agent $SHELL /usr/bin/ssh-add

测试互信

ssh node1 date ssh node2 date ssh node3 date
[root@node1 ~]# groupadd dbgrp [root@node1 ~]# useradd -g dbgrp -m omm [root@node1 ~]# echo omm | passwd --stdin omm Changing password for user omm. passwd: all authentication tokens updated successfully. [root@node1 ~]# mkdir ~/.ssh [root@node1 ~]# chmod 700 ~/.ssh [root@node1 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:2xXzSz+H2lt7axXx3WlmMWTv7u7PEllvV/1NyQI1ReE root@node1 The key's randomart image is: +---[RSA 2048]----+ | .o+*.| | . ++.| | + .E%| | = XO| | S . B+B| | o . .o=B| | . . o+B| | o.==| | . +BX| +----[SHA256]-----+ [root@node1 ~]# ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: SHA256:D3IVJAk8Z9B+OuOrheM/LE17MCTS+Qq4K14eoHnrQcg root@node1 The key's randomart image is: +---[DSA 1024]----+ | .o+.oo | | o =. . | | . * . | |.. . + o.. | |.E.. ..+So | |.oo . +Oo | |o o+ .o*.*. | |..+o..oo* . | |.++o o+o+ | +----[SHA256]-----+ [root@node1 ~]# cat ~/.ssh/id_rsa.pub >> ./.ssh/authorized_keys [root@node1 ~]# cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node1 ~]# ssh node2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node2 (192.168.17.7)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node2,192.168.17.7' (ECDSA) to the list of known hosts. root@node2's password: [root@node1 ~]# ssh node2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys root@node2's password: [root@node1 ~]# scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys root@node2's password: authorized_keys 100% 1984 3.1MB/s 00:00 [root@node1 ~]# ssh node3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node3 (192.168.17.8)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node3,192.168.17.8' (ECDSA) to the list of known hosts. root@node3's password: [root@node1 ~]# ssh node3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys root@node3's password: [root@node1 ~]# scp ~/.ssh/authorized_keys node3:~/.ssh/authorized_keys root@node3's password: authorized_keys 100% 2976 5.0MB/s 00:00 [root@node1 ~]# exec /usr/bin/ssh-agent $SHELL [root@node1 ~]# /usr/bin/ssh-add Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) [root@node1 ~]# [root@node1 ~]# ssh node1 date The authenticity of host 'node1 (192.168.17.6)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node1,192.168.17.6' (ECDSA) to the list of known hosts. Sat Apr 1 21:36:15 CST 2023 [root@node1 ~]# ssh node2 date Sat Apr 1 21:36:22 CST 2023 [root@node1 ~]# ssh node3 date Sat Apr 1 21:36:30 CST 2023 [root@node1 ~]# [root@node2 ~]# groupadd dbgrp [root@node2 ~]# useradd -g dbgrp -m omm [root@node2 ~]# echo omm | passwd --stdin omm Changing password for user omm. passwd: all authentication tokens updated successfully. [root@node2 ~]# mkdir ~/.ssh [root@node2 ~]# chmod 700 ~/.ssh [root@node2 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:Wj9MK6Ice5pIFYo6a4ZVEOav614ha6Uo+vmUKAZVzn8 root@node2 The key's randomart image is: +---[RSA 2048]----+ | o.. | | o.+ | | o.+ | | o o.o | |o o.= . E . | |o..O o + + . | |BoB = o . = | |=O B =.. . . | |=+B.Bo | +----[SHA256]-----+ [root@node2 ~]# ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: SHA256:KUH4uQVIlHdnUrhKlBzQOq8ShtLxBu4DMtpIigqou1w root@node2 The key's randomart image is: +---[DSA 1024]----+ | o+Boo o. | | +.B + o | | =.+ = | | o o +.o. | | + + +.+S | |B.= o +. | |XB E . | |O * . | |*+ o | +----[SHA256]-----+ [root@node2 ~]# cat ~/.ssh/id_rsa.pub >> ./.ssh/authorized_keys [root@node2 ~]# cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node2 ~]# [root@node2 ~]# ssh node1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node1 (192.168.17.6)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node1,192.168.17.6' (ECDSA) to the list of known hosts. [root@node2 ~]# ssh node1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node2 ~]# scp ~/.ssh/authorized_keys node1:~/.ssh/authorized_keys authorized_keys 100% 2976 4.8MB/s 00:00 [root@node2 ~]# ssh node3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node3 (192.168.17.8)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node3,192.168.17.8' (ECDSA) to the list of known hosts. [root@node2 ~]# ssh node3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node2 ~]# scp ~/.ssh/authorized_keys node3:~/.ssh/authorized_keys authorized_keys 100% 3968 5.1MB/s 00:00 [root@node2 ~]# exec /usr/bin/ssh-agent $SHELL [root@node2 ~]# /usr/bin/ssh-add Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) [root@node2 ~]# ssh node1 date Sat Apr 1 21:38:57 CST 2023 [root@node2 ~]# ssh node2 date The authenticity of host 'node2 (192.168.17.7)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node2,192.168.17.7' (ECDSA) to the list of known hosts. Sat Apr 1 21:39:03 CST 2023 [root@node2 ~]# ssh node3 date Sat Apr 1 21:39:06 CST 2023 [root@node2 ~]# [root@node3 ~]# groupadd dbgrp [root@node3 ~]# useradd -g dbgrp -m omm [root@node3 ~]# echo omm | passwd --stdin omm Changing password for user omm. passwd: all authentication tokens updated successfully. [root@node3 ~]# mkdir ~/.ssh [root@node3 ~]# chmod 700 ~/.ssh [root@node3 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:VRqi521p4GdCL00vs78A6atF0rTq8/UbYUORjieCiI0 root@node3 The key's randomart image is: +---[RSA 2048]----+ | . . o. | | . . +.. | | + ...= +o. | | E o .B.Xo+o | | . S.%o= | | = O = o | | . o + . | | ... o + . | | o+o =o | +----[SHA256]-----+ [root@node3 ~]# ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: SHA256:0gAk20GtqjoUqZzvXWzkdgVEE/y1UefokmwkZBeYOdI root@node3 The key's randomart image is: +---[DSA 1024]----+ | .o=. o*++o....| | + o. o+E. o o.| | o ... oo.o + .| | o . o .= + | |o o. ..S .= . | |.+. +. .. . | |... * . | |o .. + . | |o... . | +----[SHA256]-----+ [root@node3 ~]# cat ~/.ssh/id_rsa.pub >> ./.ssh/authorized_keys [root@node3 ~]# cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node3 ~]# [root@node3 ~]# ssh node1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node1 (192.168.17.6)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node1,192.168.17.6' (ECDSA) to the list of known hosts. root@node1's password: [root@node3 ~]# ssh node1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys root@node1's password: [root@node3 ~]# scp ~/.ssh/authorized_keys node1:~/.ssh/authorized_keys root@node1's password: authorized_keys 100% 4960 6.5MB/s 00:00 [root@node3 ~]# ssh node2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host 'node2 (192.168.17.7)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node2,192.168.17.7' (ECDSA) to the list of known hosts. [root@node3 ~]# ssh node2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [root@node3 ~]# scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys authorized_keys 100% 5952 7.1MB/s 00:00 [root@node3 ~]# exec /usr/bin/ssh-agent $SHELL [root@node3 ~]# /usr/bin/ssh-add Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) [root@node3 ~]# [root@node3 ~]# ssh node1 date Sat Apr 1 21:41:42 CST 2023 [root@node3 ~]# ssh node2 date Sat Apr 1 21:41:45 CST 2023 [root@node3 ~]# ssh node3 date The authenticity of host 'node3 (192.168.17.8)' can't be established. ECDSA key fingerprint is SHA256:vO4eWsWx7MIPczIy0bXQq23PcfgYd45a5kBiBC9ImmE. ECDSA key fingerprint is MD5:bc:be:33:bc:9b:fd:6b:ae:90:c8:39:09:18:fa:d4:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'node3,192.168.17.8' (ECDSA) to the list of known hosts. Sat Apr 1 21:41:51 CST 2023 [root@node3 ~]#

10.安装相关软件包和python3.6.x

3台虚拟机配置华为YUM源

mkdir /etc/yum.repos.d/bak mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ wget -O /etc/yum.repos.d/CentOS-Base.repo \ https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo yum clean all

3台虚拟机使用华为YUM源安装依赖的软件包,注意官网文档里要求的依赖不全,最好安装下面所有的软件包

yum install -y lksctp* java-1.8.0-openjdk* readline-devel psmisc bzip2 python3 python3-devel \ libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core expect
[root@node1 ~]# mkdir /etc/yum.repos.d/bak [root@node1 ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ [root@node1 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo \ > https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo --2023-04-01 21:46:05-- https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo Resolving repo.huaweicloud.com (repo.huaweicloud.com)... 61.172.228.199, 61.172.228.201, 61.172.228.197, ... Connecting to repo.huaweicloud.com (repo.huaweicloud.com)|61.172.228.199|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1775 (1.7K) [application/octet-stream] Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’ 100%[======================================================================================================================================================================================================================================>] 1,775 --.-K/s in 0s 2023-04-01 21:46:05 (868 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [1775/1775] [root@node1 ~]# yum clean all Loaded plugins: fastestmirror, langpacks Cleaning repos: base extras updates Cleaning up list of fastest mirrors [root@node1 ~]# yum install -y lksctp* java-1.8.0-openjdk* readline-devel psmisc bzip2 python3 python3-devel \ > libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core expect Loaded plugins: fastestmirror, langpacks Determining fastest mirrors base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/4): base/7/x86_64/group_gz | 153 kB 00:00:00 (2/4): extras/7/x86_64/primary_db | 249 kB 00:00:00 (3/4): base/7/x86_64/primary_db | 6.1 MB 00:00:00 (4/4): updates/7/x86_64/primary_db | 20 MB 00:00:00 Package lksctp-tools-1.0.17-2.el7.x86_64 already installed and latest version Package psmisc-22.20-17.el7.x86_64 already installed and latest version Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package bison.x86_64 0:3.0.4-2.el7 will be installed --> Processing Dependency: m4 >= 1.4 for package: bison-3.0.4-2.el7.x86_64 ---> Package expect.x86_64 0:5.45-14.el7_1 will be installed --> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.x86_64 ---> Package flex.x86_64 0:2.5.37-6.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: glibc-headers = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-326.el7_9.x86_64 ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update ---> Package java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed --> Processing Dependency: java-atk-wrapper(x86-64) for package: 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update --> Processing Dependency: tzdata-java >= 2022g for package: 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed ---> Package lksctp-tools-devel.x86_64 0:1.0.17-2.el7 will be installed ---> Package lksctp-tools-doc.x86_64 0:1.0.17-2.el7 will be installed ---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed ---> Package patch.x86_64 0:2.7.1-12.el7_7 will be installed ---> Package python3.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-setuptools for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-pip for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64 ---> Package python3-devel.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: redhat-rpm-config for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-generators for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 ---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-326.el7_9.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-326.el7_9.x86_64 ---> Package java-atk-wrapper.x86_64 0:0.30.4-5.el7 will be installed ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed ---> Package python-rpm-macros.noarch 0:3-34.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-34.el7.noarch ---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed ---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed ---> Package python3-rpm-generators.noarch 0:6-2.el7 will be installed ---> Package python3-rpm-macros.noarch 0:3-34.el7 will be installed ---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch ---> Package spax.x86_64 0:1.5.2-13.el7 will be installed ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed ---> Package tzdata-java.noarch 0:2022a-1.el7 will be updated ---> Package tzdata-java.noarch 0:2022g-1.el7 will be an update --> Running transaction check ---> Package dwz.x86_64 0:0.11-3.el7 will be installed ---> Package kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 will be installed ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed ---> Package python-srpm-macros.noarch 0:3-34.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================================================================================ Installing: bison x86_64 3.0.4-2.el7 base 674 k expect x86_64 5.45-14.el7_1 base 262 k flex x86_64 2.5.37-6.el7 base 293 k glibc-devel x86_64 2.17-326.el7_9 updates 1.1 M java-1.8.0-openjdk-accessibility x86_64 1:1.8.0.362.b08-1.el7_9 updates 102 k java-1.8.0-openjdk-demo x86_64 1:1.8.0.362.b08-1.el7_9 updates 2.0 M java-1.8.0-openjdk-devel x86_64 1:1.8.0.362.b08-1.el7_9 updates 9.8 M java-1.8.0-openjdk-javadoc noarch 1:1.8.0.362.b08-1.el7_9 updates 15 M java-1.8.0-openjdk-javadoc-zip noarch 1:1.8.0.362.b08-1.el7_9 updates 42 M java-1.8.0-openjdk-src x86_64 1:1.8.0.362.b08-1.el7_9 updates 45 M libaio-devel x86_64 0.3.109-13.el7 base 13 k lksctp-tools-devel x86_64 1.0.17-2.el7 base 52 k lksctp-tools-doc x86_64 1.0.17-2.el7 base 143 k ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k patch x86_64 2.7.1-12.el7_7 base 111 k python3 x86_64 3.6.8-18.el7 updates 70 k python3-devel x86_64 3.6.8-18.el7 updates 217 k readline-devel x86_64 6.2-11.el7 base 139 k redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k Updating: java-1.8.0-openjdk x86_64 1:1.8.0.362.b08-1.el7_9 updates 317 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.362.b08-1.el7_9 updates 33 M Installing for dependencies: dwz x86_64 0.11-3.el7 base 99 k glibc-headers x86_64 2.17-326.el7_9 updates 691 k java-atk-wrapper x86_64 0.30.4-5.el7 base 71 k kernel-headers x86_64 3.10.0-1160.88.1.el7 updates 9.1 M m4 x86_64 1.4.16-10.el7 base 256 k perl-srpm-macros noarch 1-8.el7 base 4.6 k python-rpm-macros noarch 3-34.el7 base 9.1 k python-srpm-macros noarch 3-34.el7 base 8.8 k python3-libs x86_64 3.6.8-18.el7 updates 6.9 M python3-pip noarch 9.0.3-8.el7 base 1.6 M python3-rpm-generators noarch 6-2.el7 base 20 k python3-rpm-macros noarch 3-34.el7 base 8.1 k python3-setuptools noarch 39.2.0-10.el7 base 629 k redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k spax x86_64 1.5.2-13.el7 base 260 k tcl x86_64 1:8.5.13-8.el7 base 1.9 M Updating for dependencies: tzdata-java noarch 2022g-1.el7 updates 185 k Transaction Summary ================================================================================================================================================================================================================================================================================ Install 19 Packages (+17 Dependent packages) Upgrade 2 Packages (+ 1 Dependent package) Total download size: 173 M Downloading packages: No Presto metadata available for updates (1/39): bison-3.0.4-2.el7.x86_64.rpm | 674 kB 00:00:00 (2/39): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:00 (3/39): flex-2.5.37-6.el7.x86_64.rpm | 293 kB 00:00:00 (4/39): expect-5.45-14.el7_1.x86_64.rpm | 262 kB 00:00:00 (5/39): glibc-headers-2.17-326.el7_9.x86_64.rpm | 691 kB 00:00:00 (6/39): glibc-devel-2.17-326.el7_9.x86_64.rpm | 1.1 MB 00:00:00 (7/39): java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64.rpm | 102 kB 00:00:00 (8/39): java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64.rpm | 317 kB 00:00:00 (9/39): java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64.rpm | 2.0 MB 00:00:00 (10/39): java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64.rpm | 9.8 MB 00:00:00 (11/39): java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch.rpm | 15 MB 00:00:00 (12/39): java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64.rpm | 33 MB 00:00:00 (13/39): java-atk-wrapper-0.30.4-5.el7.x86_64.rpm | 71 kB 00:00:00 (14/39): java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch.rpm | 42 MB 00:00:00 (15/39): java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64.rpm | 45 MB 00:00:00 (16/39): libaio-devel-0.3.109-13.el7.x86_64.rpm | 13 kB 00:00:00 (17/39): kernel-headers-3.10.0-1160.88.1.el7.x86_64.rpm | 9.1 MB 00:00:00 (18/39): lksctp-tools-devel-1.0.17-2.el7.x86_64.rpm | 52 kB 00:00:00 (19/39): lksctp-tools-doc-1.0.17-2.el7.x86_64.rpm | 143 kB 00:00:00 (20/39): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00 (21/39): patch-2.7.1-12.el7_7.x86_64.rpm | 111 kB 00:00:00 (22/39): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:00 (23/39): python-rpm-macros-3-34.el7.noarch.rpm | 9.1 kB 00:00:00 (24/39): python-srpm-macros-3-34.el7.noarch.rpm | 8.8 kB 00:00:00 (25/39): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00 (26/39): python3-3.6.8-18.el7.x86_64.rpm | 70 kB 00:00:00 (27/39): python3-devel-3.6.8-18.el7.x86_64.rpm | 217 kB 00:00:00 (28/39): python3-rpm-generators-6-2.el7.noarch.rpm | 20 kB 00:00:00 (29/39): python3-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00:00 (30/39): python3-pip-9.0.3-8.el7.noarch.rpm | 1.6 MB 00:00:00 (31/39): python3-libs-3.6.8-18.el7.x86_64.rpm | 6.9 MB 00:00:00 (32/39): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:00 (33/39): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm | 38 kB 00:00:00 (34/39): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (35/39): readline-devel-6.2-11.el7.x86_64.rpm | 139 kB 00:00:00 (36/39): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00 (37/39): spax-1.5.2-13.el7.x86_64.rpm | 260 kB 00:00:00 (38/39): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00 (39/39): tzdata-java-2022g-1.el7.noarch.rpm | 185 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 66 MB/s | 173 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python3-libs-3.6.8-18.el7.x86_64 1/42 Installing : python3-pip-9.0.3-8.el7.noarch 2/42 Installing : python3-setuptools-39.2.0-10.el7.noarch 3/42 Installing : python3-3.6.8-18.el7.x86_64 4/42 Installing : m4-1.4.16-10.el7.x86_64 5/42 Installing : python-srpm-macros-3-34.el7.noarch 6/42 Installing : python-rpm-macros-3-34.el7.noarch 7/42 Installing : python3-rpm-generators-6-2.el7.noarch 8/42 Installing : python3-rpm-macros-3-34.el7.noarch 9/42 Installing : dwz-0.11-3.el7.x86_64 10/42 Installing : kernel-headers-3.10.0-1160.88.1.el7.x86_64 11/42 Installing : glibc-headers-2.17-326.el7_9.x86_64 12/42 Installing : patch-2.7.1-12.el7_7.x86_64 13/42 Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Installing : perl-srpm-macros-1-8.el7.noarch 15/42 Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 16/42 Installing : spax-1.5.2-13.el7.x86_64 17/42 Updating : tzdata-java-2022g-1.el7.noarch 18/42 Updating : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 19/42 warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security Updating : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 20/42 Installing : java-atk-wrapper-0.30.4-5.el7.x86_64 21/42 Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 22/42 Installing : 1:tcl-8.5.13-8.el7.x86_64 23/42 Installing : expect-5.45-14.el7_1.x86_64 24/42 Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 25/42 Installing : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 26/42 Installing : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 27/42 Installing : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 28/42 Installing : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 29/42 Installing : python3-devel-3.6.8-18.el7.x86_64 30/42 Installing : readline-devel-6.2-11.el7.x86_64 31/42 Installing : glibc-devel-2.17-326.el7_9.x86_64 32/42 Installing : flex-2.5.37-6.el7.x86_64 33/42 Installing : bison-3.0.4-2.el7.x86_64 34/42 Installing : libaio-devel-0.3.109-13.el7.x86_64 35/42 Installing : lksctp-tools-devel-1.0.17-2.el7.x86_64 36/42 Installing : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 37/42 Installing : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 38/42 Installing : lksctp-tools-doc-1.0.17-2.el7.x86_64 39/42 Cleanup : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 40/42 Cleanup : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 41/42 Cleanup : tzdata-java-2022a-1.el7.noarch 42/42 Verifying : java-atk-wrapper-0.30.4-5.el7.x86_64 1/42 Verifying : 1:tcl-8.5.13-8.el7.x86_64 2/42 Verifying : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 3/42 Verifying : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 4/42 Verifying : tzdata-java-2022g-1.el7.noarch 5/42 Verifying : lksctp-tools-doc-1.0.17-2.el7.x86_64 6/42 Verifying : python3-3.6.8-18.el7.x86_64 7/42 Verifying : python3-pip-9.0.3-8.el7.noarch 8/42 Verifying : m4-1.4.16-10.el7.x86_64 9/42 Verifying : python3-rpm-generators-6-2.el7.noarch 10/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 11/42 Verifying : spax-1.5.2-13.el7.x86_64 12/42 Verifying : perl-srpm-macros-1-8.el7.noarch 13/42 Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Verifying : python-rpm-macros-3-34.el7.noarch 15/42 Verifying : glibc-headers-2.17-326.el7_9.x86_64 16/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 17/42 Verifying : python3-devel-3.6.8-18.el7.x86_64 18/42 Verifying : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 19/42 Verifying : python-srpm-macros-3-34.el7.noarch 20/42 Verifying : patch-2.7.1-12.el7_7.x86_64 21/42 Verifying : python3-libs-3.6.8-18.el7.x86_64 22/42 Verifying : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 23/42 Verifying : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 24/42 Verifying : lksctp-tools-devel-1.0.17-2.el7.x86_64 25/42 Verifying : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 26/42 Verifying : flex-2.5.37-6.el7.x86_64 27/42 Verifying : libaio-devel-0.3.109-13.el7.x86_64 28/42 Verifying : python3-setuptools-39.2.0-10.el7.noarch 29/42 Verifying : kernel-headers-3.10.0-1160.88.1.el7.x86_64 30/42 Verifying : readline-devel-6.2-11.el7.x86_64 31/42 Verifying : bison-3.0.4-2.el7.x86_64 32/42 Verifying : glibc-devel-2.17-326.el7_9.x86_64 33/42 Verifying : expect-5.45-14.el7_1.x86_64 34/42 Verifying : dwz-0.11-3.el7.x86_64 35/42 Verifying : python3-rpm-macros-3-34.el7.noarch 36/42 Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 37/42 Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 38/42 Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 39/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 40/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 41/42 Verifying : tzdata-java-2022a-1.el7.noarch 42/42 Installed: bison.x86_64 0:3.0.4-2.el7 expect.x86_64 0:5.45-14.el7_1 flex.x86_64 0:2.5.37-6.el7 glibc-devel.x86_64 0:2.17-326.el7_9 java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 libaio-devel.x86_64 0:0.3.109-13.el7 lksctp-tools-devel.x86_64 0:1.0.17-2.el7 lksctp-tools-doc.x86_64 0:1.0.17-2.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 patch.x86_64 0:2.7.1-12.el7_7 python3.x86_64 0:3.6.8-18.el7 python3-devel.x86_64 0:3.6.8-18.el7 readline-devel.x86_64 0:6.2-11.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 Dependency Installed: dwz.x86_64 0:0.11-3.el7 glibc-headers.x86_64 0:2.17-326.el7_9 java-atk-wrapper.x86_64 0:0.30.4-5.el7 kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 m4.x86_64 0:1.4.16-10.el7 perl-srpm-macros.noarch 0:1-8.el7 python-rpm-macros.noarch 0:3-34.el7 python-srpm-macros.noarch 0:3-34.el7 python3-libs.x86_64 0:3.6.8-18.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-rpm-generators.noarch 0:6-2.el7 python3-rpm-macros.noarch 0:3-34.el7 python3-setuptools.noarch 0:39.2.0-10.el7 redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos spax.x86_64 0:1.5.2-13.el7 tcl.x86_64 1:8.5.13-8.el7 Updated: java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 Dependency Updated: tzdata-java.noarch 0:2022g-1.el7 Complete! [root@node1 ~]# [root@node2 ~]# mkdir /etc/yum.repos.d/bak [root@node2 ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ [root@node2 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo \ > https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo --2023-04-01 21:47:05-- https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo Resolving repo.huaweicloud.com (repo.huaweicloud.com)... 61.172.228.200, 61.172.228.196, 61.172.228.199, ... Connecting to repo.huaweicloud.com (repo.huaweicloud.com)|61.172.228.200|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1775 (1.7K) [application/octet-stream] Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’ 100%[======================================================================================================================================================================================================================================>] 1,775 --.-K/s in 0s 2023-04-01 21:47:05 (733 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [1775/1775] [root@node2 ~]# yum clean all Loaded plugins: fastestmirror, langpacks Cleaning repos: base extras updates Cleaning up list of fastest mirrors [root@node2 ~]# yum install -y lksctp* java-1.8.0-openjdk* readline-devel psmisc bzip2 python3 python3-devel \ > libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core expect Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package lksctp-tools-1.0.17-2.el7.x86_64 already installed and latest version Package psmisc-22.20-17.el7.x86_64 already installed and latest version Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package bison.x86_64 0:3.0.4-2.el7 will be installed --> Processing Dependency: m4 >= 1.4 for package: bison-3.0.4-2.el7.x86_64 ---> Package expect.x86_64 0:5.45-14.el7_1 will be installed --> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.x86_64 ---> Package flex.x86_64 0:2.5.37-6.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: glibc-headers = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-326.el7_9.x86_64 ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update ---> Package java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed --> Processing Dependency: java-atk-wrapper(x86-64) for package: 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update --> Processing Dependency: tzdata-java >= 2022g for package: 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed ---> Package lksctp-tools-devel.x86_64 0:1.0.17-2.el7 will be installed ---> Package lksctp-tools-doc.x86_64 0:1.0.17-2.el7 will be installed ---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed ---> Package patch.x86_64 0:2.7.1-12.el7_7 will be installed ---> Package python3.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-setuptools for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-pip for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64 ---> Package python3-devel.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: redhat-rpm-config for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-generators for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 ---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-326.el7_9.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-326.el7_9.x86_64 ---> Package java-atk-wrapper.x86_64 0:0.30.4-5.el7 will be installed ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed ---> Package python-rpm-macros.noarch 0:3-34.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-34.el7.noarch ---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed ---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed ---> Package python3-rpm-generators.noarch 0:6-2.el7 will be installed ---> Package python3-rpm-macros.noarch 0:3-34.el7 will be installed ---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch ---> Package spax.x86_64 0:1.5.2-13.el7 will be installed ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed ---> Package tzdata-java.noarch 0:2022a-1.el7 will be updated ---> Package tzdata-java.noarch 0:2022g-1.el7 will be an update --> Running transaction check ---> Package dwz.x86_64 0:0.11-3.el7 will be installed ---> Package kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 will be installed ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed ---> Package python-srpm-macros.noarch 0:3-34.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================================================================================ Installing: bison x86_64 3.0.4-2.el7 base 674 k expect x86_64 5.45-14.el7_1 base 262 k flex x86_64 2.5.37-6.el7 base 293 k glibc-devel x86_64 2.17-326.el7_9 updates 1.1 M java-1.8.0-openjdk-accessibility x86_64 1:1.8.0.362.b08-1.el7_9 updates 102 k java-1.8.0-openjdk-demo x86_64 1:1.8.0.362.b08-1.el7_9 updates 2.0 M java-1.8.0-openjdk-devel x86_64 1:1.8.0.362.b08-1.el7_9 updates 9.8 M java-1.8.0-openjdk-javadoc noarch 1:1.8.0.362.b08-1.el7_9 updates 15 M java-1.8.0-openjdk-javadoc-zip noarch 1:1.8.0.362.b08-1.el7_9 updates 42 M java-1.8.0-openjdk-src x86_64 1:1.8.0.362.b08-1.el7_9 updates 45 M libaio-devel x86_64 0.3.109-13.el7 base 13 k lksctp-tools-devel x86_64 1.0.17-2.el7 base 52 k lksctp-tools-doc x86_64 1.0.17-2.el7 base 143 k ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k patch x86_64 2.7.1-12.el7_7 base 111 k python3 x86_64 3.6.8-18.el7 updates 70 k python3-devel x86_64 3.6.8-18.el7 updates 217 k readline-devel x86_64 6.2-11.el7 base 139 k redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k Updating: java-1.8.0-openjdk x86_64 1:1.8.0.362.b08-1.el7_9 updates 317 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.362.b08-1.el7_9 updates 33 M Installing for dependencies: dwz x86_64 0.11-3.el7 base 99 k glibc-headers x86_64 2.17-326.el7_9 updates 691 k java-atk-wrapper x86_64 0.30.4-5.el7 base 71 k kernel-headers x86_64 3.10.0-1160.88.1.el7 updates 9.1 M m4 x86_64 1.4.16-10.el7 base 256 k perl-srpm-macros noarch 1-8.el7 base 4.6 k python-rpm-macros noarch 3-34.el7 base 9.1 k python-srpm-macros noarch 3-34.el7 base 8.8 k python3-libs x86_64 3.6.8-18.el7 updates 6.9 M python3-pip noarch 9.0.3-8.el7 base 1.6 M python3-rpm-generators noarch 6-2.el7 base 20 k python3-rpm-macros noarch 3-34.el7 base 8.1 k python3-setuptools noarch 39.2.0-10.el7 base 629 k redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k spax x86_64 1.5.2-13.el7 base 260 k tcl x86_64 1:8.5.13-8.el7 base 1.9 M Updating for dependencies: tzdata-java noarch 2022g-1.el7 updates 185 k Transaction Summary ================================================================================================================================================================================================================================================================================ Install 19 Packages (+17 Dependent packages) Upgrade 2 Packages (+ 1 Dependent package) Total download size: 173 M Downloading packages: No Presto metadata available for updates (1/39): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:00 (2/39): bison-3.0.4-2.el7.x86_64.rpm | 674 kB 00:00:00 (3/39): flex-2.5.37-6.el7.x86_64.rpm | 293 kB 00:00:00 (4/39): expect-5.45-14.el7_1.x86_64.rpm | 262 kB 00:00:00 (5/39): glibc-headers-2.17-326.el7_9.x86_64.rpm | 691 kB 00:00:00 (6/39): glibc-devel-2.17-326.el7_9.x86_64.rpm | 1.1 MB 00:00:00 (7/39): java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64.rpm | 317 kB 00:00:00 (8/39): java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64.rpm | 102 kB 00:00:00 (9/39): java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64.rpm | 2.0 MB 00:00:00 (10/39): java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64.rpm | 9.8 MB 00:00:00 (11/39): java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64.rpm | 33 MB 00:00:00 (12/39): java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch.rpm | 15 MB 00:00:00 (13/39): java-atk-wrapper-0.30.4-5.el7.x86_64.rpm | 71 kB 00:00:00 (14/39): java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch.rpm | 42 MB 00:00:00 (15/39): kernel-headers-3.10.0-1160.88.1.el7.x86_64.rpm | 9.1 MB 00:00:00 (16/39): libaio-devel-0.3.109-13.el7.x86_64.rpm | 13 kB 00:00:00 (17/39): lksctp-tools-devel-1.0.17-2.el7.x86_64.rpm | 52 kB 00:00:00 (18/39): lksctp-tools-doc-1.0.17-2.el7.x86_64.rpm | 143 kB 00:00:00 (19/39): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00 (20/39): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00 (21/39): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:00 (22/39): python-rpm-macros-3-34.el7.noarch.rpm | 9.1 kB 00:00:00 (23/39): patch-2.7.1-12.el7_7.x86_64.rpm | 111 kB 00:00:00 (24/39): python-srpm-macros-3-34.el7.noarch.rpm | 8.8 kB 00:00:00 (25/39): python3-3.6.8-18.el7.x86_64.rpm | 70 kB 00:00:00 (26/39): python3-devel-3.6.8-18.el7.x86_64.rpm | 217 kB 00:00:00 (27/39): java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64.rpm | 45 MB 00:00:01 (28/39): python3-libs-3.6.8-18.el7.x86_64.rpm | 6.9 MB 00:00:00 (29/39): python3-rpm-generators-6-2.el7.noarch.rpm | 20 kB 00:00:00 (30/39): python3-pip-9.0.3-8.el7.noarch.rpm | 1.6 MB 00:00:00 (31/39): python3-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00:00 (32/39): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:00 (33/39): readline-devel-6.2-11.el7.x86_64.rpm | 139 kB 00:00:00 (34/39): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (35/39): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm | 38 kB 00:00:00 (36/39): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00 (37/39): spax-1.5.2-13.el7.x86_64.rpm | 260 kB 00:00:00 (38/39): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00 (39/39): tzdata-java-2022g-1.el7.noarch.rpm | 185 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 68 MB/s | 173 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python3-libs-3.6.8-18.el7.x86_64 1/42 Installing : python3-pip-9.0.3-8.el7.noarch 2/42 Installing : python3-setuptools-39.2.0-10.el7.noarch 3/42 Installing : python3-3.6.8-18.el7.x86_64 4/42 Installing : m4-1.4.16-10.el7.x86_64 5/42 Installing : python-srpm-macros-3-34.el7.noarch 6/42 Installing : python-rpm-macros-3-34.el7.noarch 7/42 Installing : python3-rpm-generators-6-2.el7.noarch 8/42 Installing : python3-rpm-macros-3-34.el7.noarch 9/42 Installing : dwz-0.11-3.el7.x86_64 10/42 Installing : kernel-headers-3.10.0-1160.88.1.el7.x86_64 11/42 Installing : glibc-headers-2.17-326.el7_9.x86_64 12/42 Installing : patch-2.7.1-12.el7_7.x86_64 13/42 Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Installing : perl-srpm-macros-1-8.el7.noarch 15/42 Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 16/42 Installing : spax-1.5.2-13.el7.x86_64 17/42 Updating : tzdata-java-2022g-1.el7.noarch 18/42 Updating : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 19/42 warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security Updating : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 20/42 Installing : java-atk-wrapper-0.30.4-5.el7.x86_64 21/42 Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 22/42 Installing : 1:tcl-8.5.13-8.el7.x86_64 23/42 Installing : expect-5.45-14.el7_1.x86_64 24/42 Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 25/42 Installing : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 26/42 Installing : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 27/42 Installing : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 28/42 Installing : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 29/42 Installing : python3-devel-3.6.8-18.el7.x86_64 30/42 Installing : readline-devel-6.2-11.el7.x86_64 31/42 Installing : glibc-devel-2.17-326.el7_9.x86_64 32/42 Installing : flex-2.5.37-6.el7.x86_64 33/42 Installing : bison-3.0.4-2.el7.x86_64 34/42 Installing : libaio-devel-0.3.109-13.el7.x86_64 35/42 Installing : lksctp-tools-devel-1.0.17-2.el7.x86_64 36/42 Installing : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 37/42 Installing : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 38/42 Installing : lksctp-tools-doc-1.0.17-2.el7.x86_64 39/42 Cleanup : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 40/42 Cleanup : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 41/42 Cleanup : tzdata-java-2022a-1.el7.noarch 42/42 Verifying : java-atk-wrapper-0.30.4-5.el7.x86_64 1/42 Verifying : 1:tcl-8.5.13-8.el7.x86_64 2/42 Verifying : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 3/42 Verifying : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 4/42 Verifying : tzdata-java-2022g-1.el7.noarch 5/42 Verifying : lksctp-tools-doc-1.0.17-2.el7.x86_64 6/42 Verifying : python3-3.6.8-18.el7.x86_64 7/42 Verifying : python3-pip-9.0.3-8.el7.noarch 8/42 Verifying : m4-1.4.16-10.el7.x86_64 9/42 Verifying : python3-rpm-generators-6-2.el7.noarch 10/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 11/42 Verifying : spax-1.5.2-13.el7.x86_64 12/42 Verifying : perl-srpm-macros-1-8.el7.noarch 13/42 Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Verifying : python-rpm-macros-3-34.el7.noarch 15/42 Verifying : glibc-headers-2.17-326.el7_9.x86_64 16/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 17/42 Verifying : python3-devel-3.6.8-18.el7.x86_64 18/42 Verifying : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 19/42 Verifying : python-srpm-macros-3-34.el7.noarch 20/42 Verifying : patch-2.7.1-12.el7_7.x86_64 21/42 Verifying : python3-libs-3.6.8-18.el7.x86_64 22/42 Verifying : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 23/42 Verifying : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 24/42 Verifying : lksctp-tools-devel-1.0.17-2.el7.x86_64 25/42 Verifying : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 26/42 Verifying : flex-2.5.37-6.el7.x86_64 27/42 Verifying : libaio-devel-0.3.109-13.el7.x86_64 28/42 Verifying : python3-setuptools-39.2.0-10.el7.noarch 29/42 Verifying : kernel-headers-3.10.0-1160.88.1.el7.x86_64 30/42 Verifying : readline-devel-6.2-11.el7.x86_64 31/42 Verifying : bison-3.0.4-2.el7.x86_64 32/42 Verifying : glibc-devel-2.17-326.el7_9.x86_64 33/42 Verifying : expect-5.45-14.el7_1.x86_64 34/42 Verifying : dwz-0.11-3.el7.x86_64 35/42 Verifying : python3-rpm-macros-3-34.el7.noarch 36/42 Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 37/42 Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 38/42 Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 39/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 40/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 41/42 Verifying : tzdata-java-2022a-1.el7.noarch 42/42 Installed: bison.x86_64 0:3.0.4-2.el7 expect.x86_64 0:5.45-14.el7_1 flex.x86_64 0:2.5.37-6.el7 glibc-devel.x86_64 0:2.17-326.el7_9 java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 libaio-devel.x86_64 0:0.3.109-13.el7 lksctp-tools-devel.x86_64 0:1.0.17-2.el7 lksctp-tools-doc.x86_64 0:1.0.17-2.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 patch.x86_64 0:2.7.1-12.el7_7 python3.x86_64 0:3.6.8-18.el7 python3-devel.x86_64 0:3.6.8-18.el7 readline-devel.x86_64 0:6.2-11.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 Dependency Installed: dwz.x86_64 0:0.11-3.el7 glibc-headers.x86_64 0:2.17-326.el7_9 java-atk-wrapper.x86_64 0:0.30.4-5.el7 kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 m4.x86_64 0:1.4.16-10.el7 perl-srpm-macros.noarch 0:1-8.el7 python-rpm-macros.noarch 0:3-34.el7 python-srpm-macros.noarch 0:3-34.el7 python3-libs.x86_64 0:3.6.8-18.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-rpm-generators.noarch 0:6-2.el7 python3-rpm-macros.noarch 0:3-34.el7 python3-setuptools.noarch 0:39.2.0-10.el7 redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos spax.x86_64 0:1.5.2-13.el7 tcl.x86_64 1:8.5.13-8.el7 Updated: java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 Dependency Updated: tzdata-java.noarch 0:2022g-1.el7 Complete! [root@node2 ~]# [root@node3 ~]# mkdir /etc/yum.repos.d/bak [root@node3 ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ [root@node3 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo \ > https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo --2023-04-01 21:47:09-- https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo Resolving repo.huaweicloud.com (repo.huaweicloud.com)... 61.172.228.199, 61.172.228.201, 61.172.228.197, ... Connecting to repo.huaweicloud.com (repo.huaweicloud.com)|61.172.228.199|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1775 (1.7K) [application/octet-stream] Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’ 100%[======================================================================================================================================================================================================================================>] 1,775 --.-K/s in 0s 2023-04-01 21:47:09 (910 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [1775/1775] [root@node3 ~]# yum clean all Loaded plugins: fastestmirror, langpacks Cleaning repos: base extras updates Cleaning up list of fastest mirrors [root@node3 ~]# yum install -y lksctp* java-1.8.0-openjdk* readline-devel psmisc bzip2 python3 python3-devel \ > libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core expect Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package lksctp-tools-1.0.17-2.el7.x86_64 already installed and latest version Package psmisc-22.20-17.el7.x86_64 already installed and latest version Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package bison.x86_64 0:3.0.4-2.el7 will be installed --> Processing Dependency: m4 >= 1.4 for package: bison-3.0.4-2.el7.x86_64 ---> Package expect.x86_64 0:5.45-14.el7_1 will be installed --> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.x86_64 ---> Package flex.x86_64 0:2.5.37-6.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: glibc-headers = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-326.el7_9.x86_64 ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update ---> Package java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed --> Processing Dependency: java-atk-wrapper(x86-64) for package: 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.332.b09-1.el7_9 will be updated ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update --> Processing Dependency: tzdata-java >= 2022g for package: 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 ---> Package java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed ---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed ---> Package lksctp-tools-devel.x86_64 0:1.0.17-2.el7 will be installed ---> Package lksctp-tools-doc.x86_64 0:1.0.17-2.el7 will be installed ---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed ---> Package patch.x86_64 0:2.7.1-12.el7_7 will be installed ---> Package python3.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-setuptools for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-pip for package: python3-3.6.8-18.el7.x86_64 --> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64 ---> Package python3-devel.x86_64 0:3.6.8-18.el7 will be installed --> Processing Dependency: redhat-rpm-config for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python3-rpm-generators for package: python3-devel-3.6.8-18.el7.x86_64 --> Processing Dependency: python-rpm-macros for package: python3-devel-3.6.8-18.el7.x86_64 ---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-326.el7_9.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-326.el7_9.x86_64 ---> Package java-atk-wrapper.x86_64 0:0.30.4-5.el7 will be installed ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed ---> Package python-rpm-macros.noarch 0:3-34.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-34.el7.noarch ---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed ---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed ---> Package python3-rpm-generators.noarch 0:6-2.el7 will be installed ---> Package python3-rpm-macros.noarch 0:3-34.el7 will be installed ---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch ---> Package spax.x86_64 0:1.5.2-13.el7 will be installed ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed ---> Package tzdata-java.noarch 0:2022a-1.el7 will be updated ---> Package tzdata-java.noarch 0:2022g-1.el7 will be an update --> Running transaction check ---> Package dwz.x86_64 0:0.11-3.el7 will be installed ---> Package kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 will be installed ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed ---> Package python-srpm-macros.noarch 0:3-34.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================================================================================ Installing: bison x86_64 3.0.4-2.el7 base 674 k expect x86_64 5.45-14.el7_1 base 262 k flex x86_64 2.5.37-6.el7 base 293 k glibc-devel x86_64 2.17-326.el7_9 updates 1.1 M java-1.8.0-openjdk-accessibility x86_64 1:1.8.0.362.b08-1.el7_9 updates 102 k java-1.8.0-openjdk-demo x86_64 1:1.8.0.362.b08-1.el7_9 updates 2.0 M java-1.8.0-openjdk-devel x86_64 1:1.8.0.362.b08-1.el7_9 updates 9.8 M java-1.8.0-openjdk-javadoc noarch 1:1.8.0.362.b08-1.el7_9 updates 15 M java-1.8.0-openjdk-javadoc-zip noarch 1:1.8.0.362.b08-1.el7_9 updates 42 M java-1.8.0-openjdk-src x86_64 1:1.8.0.362.b08-1.el7_9 updates 45 M libaio-devel x86_64 0.3.109-13.el7 base 13 k lksctp-tools-devel x86_64 1.0.17-2.el7 base 52 k lksctp-tools-doc x86_64 1.0.17-2.el7 base 143 k ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k patch x86_64 2.7.1-12.el7_7 base 111 k python3 x86_64 3.6.8-18.el7 updates 70 k python3-devel x86_64 3.6.8-18.el7 updates 217 k readline-devel x86_64 6.2-11.el7 base 139 k redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k Updating: java-1.8.0-openjdk x86_64 1:1.8.0.362.b08-1.el7_9 updates 317 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.362.b08-1.el7_9 updates 33 M Installing for dependencies: dwz x86_64 0.11-3.el7 base 99 k glibc-headers x86_64 2.17-326.el7_9 updates 691 k java-atk-wrapper x86_64 0.30.4-5.el7 base 71 k kernel-headers x86_64 3.10.0-1160.88.1.el7 updates 9.1 M m4 x86_64 1.4.16-10.el7 base 256 k perl-srpm-macros noarch 1-8.el7 base 4.6 k python-rpm-macros noarch 3-34.el7 base 9.1 k python-srpm-macros noarch 3-34.el7 base 8.8 k python3-libs x86_64 3.6.8-18.el7 updates 6.9 M python3-pip noarch 9.0.3-8.el7 base 1.6 M python3-rpm-generators noarch 6-2.el7 base 20 k python3-rpm-macros noarch 3-34.el7 base 8.1 k python3-setuptools noarch 39.2.0-10.el7 base 629 k redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k spax x86_64 1.5.2-13.el7 base 260 k tcl x86_64 1:8.5.13-8.el7 base 1.9 M Updating for dependencies: tzdata-java noarch 2022g-1.el7 updates 185 k Transaction Summary ================================================================================================================================================================================================================================================================================ Install 19 Packages (+17 Dependent packages) Upgrade 2 Packages (+ 1 Dependent package) Total download size: 173 M Downloading packages: No Presto metadata available for updates (1/39): bison-3.0.4-2.el7.x86_64.rpm | 674 kB 00:00:00 (2/39): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:00 (3/39): expect-5.45-14.el7_1.x86_64.rpm | 262 kB 00:00:00 (4/39): flex-2.5.37-6.el7.x86_64.rpm | 293 kB 00:00:00 (5/39): glibc-devel-2.17-326.el7_9.x86_64.rpm | 1.1 MB 00:00:00 (6/39): java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64.rpm | 317 kB 00:00:00 (7/39): java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64.rpm | 102 kB 00:00:00 (8/39): glibc-headers-2.17-326.el7_9.x86_64.rpm | 691 kB 00:00:00 (9/39): java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64.rpm | 2.0 MB 00:00:00 (10/39): java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64.rpm | 9.8 MB 00:00:00 (11/39): java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64.rpm | 33 MB 00:00:00 (12/39): java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch.rpm | 15 MB 00:00:00 (13/39): java-atk-wrapper-0.30.4-5.el7.x86_64.rpm | 71 kB 00:00:00 (14/39): java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch.rpm | 42 MB 00:00:00 (15/39): kernel-headers-3.10.0-1160.88.1.el7.x86_64.rpm | 9.1 MB 00:00:00 (16/39): libaio-devel-0.3.109-13.el7.x86_64.rpm | 13 kB 00:00:00 (17/39): lksctp-tools-devel-1.0.17-2.el7.x86_64.rpm | 52 kB 00:00:00 (18/39): lksctp-tools-doc-1.0.17-2.el7.x86_64.rpm | 143 kB 00:00:00 (19/39): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00 (20/39): patch-2.7.1-12.el7_7.x86_64.rpm | 111 kB 00:00:00 (21/39): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:00 (22/39): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00 (23/39): python-rpm-macros-3-34.el7.noarch.rpm | 9.1 kB 00:00:00 (24/39): python-srpm-macros-3-34.el7.noarch.rpm | 8.8 kB 00:00:00 (25/39): python3-3.6.8-18.el7.x86_64.rpm | 70 kB 00:00:00 (26/39): python3-devel-3.6.8-18.el7.x86_64.rpm | 217 kB 00:00:00 (27/39): java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64.rpm | 45 MB 00:00:01 (28/39): python3-rpm-generators-6-2.el7.noarch.rpm | 20 kB 00:00:00 (29/39): python3-pip-9.0.3-8.el7.noarch.rpm | 1.6 MB 00:00:00 (30/39): python3-libs-3.6.8-18.el7.x86_64.rpm | 6.9 MB 00:00:00 (31/39): python3-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00:00 (32/39): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:00 (33/39): readline-devel-6.2-11.el7.x86_64.rpm | 139 kB 00:00:00 (34/39): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm | 38 kB 00:00:00 (35/39): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (36/39): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00 (37/39): spax-1.5.2-13.el7.x86_64.rpm | 260 kB 00:00:00 (38/39): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00 (39/39): tzdata-java-2022g-1.el7.noarch.rpm | 185 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 63 MB/s | 173 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python3-libs-3.6.8-18.el7.x86_64 1/42 Installing : python3-pip-9.0.3-8.el7.noarch 2/42 Installing : python3-setuptools-39.2.0-10.el7.noarch 3/42 Installing : python3-3.6.8-18.el7.x86_64 4/42 Installing : m4-1.4.16-10.el7.x86_64 5/42 Installing : python-srpm-macros-3-34.el7.noarch 6/42 Installing : python-rpm-macros-3-34.el7.noarch 7/42 Installing : python3-rpm-generators-6-2.el7.noarch 8/42 Installing : python3-rpm-macros-3-34.el7.noarch 9/42 Installing : dwz-0.11-3.el7.x86_64 10/42 Installing : kernel-headers-3.10.0-1160.88.1.el7.x86_64 11/42 Installing : glibc-headers-2.17-326.el7_9.x86_64 12/42 Installing : patch-2.7.1-12.el7_7.x86_64 13/42 Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Installing : perl-srpm-macros-1-8.el7.noarch 15/42 Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 16/42 Installing : spax-1.5.2-13.el7.x86_64 17/42 Updating : tzdata-java-2022g-1.el7.noarch 18/42 Updating : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 19/42 warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.policy restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre/lib/security/java.security Updating : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 20/42 Installing : java-atk-wrapper-0.30.4-5.el7.x86_64 21/42 Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 22/42 Installing : 1:tcl-8.5.13-8.el7.x86_64 23/42 Installing : expect-5.45-14.el7_1.x86_64 24/42 Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 25/42 Installing : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 26/42 Installing : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 27/42 Installing : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 28/42 Installing : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 29/42 Installing : python3-devel-3.6.8-18.el7.x86_64 30/42 Installing : readline-devel-6.2-11.el7.x86_64 31/42 Installing : glibc-devel-2.17-326.el7_9.x86_64 32/42 Installing : flex-2.5.37-6.el7.x86_64 33/42 Installing : bison-3.0.4-2.el7.x86_64 34/42 Installing : libaio-devel-0.3.109-13.el7.x86_64 35/42 Installing : lksctp-tools-devel-1.0.17-2.el7.x86_64 36/42 Installing : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 37/42 Installing : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 38/42 Installing : lksctp-tools-doc-1.0.17-2.el7.x86_64 39/42 Cleanup : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 40/42 Cleanup : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 41/42 Cleanup : tzdata-java-2022a-1.el7.noarch 42/42 Verifying : java-atk-wrapper-0.30.4-5.el7.x86_64 1/42 Verifying : 1:tcl-8.5.13-8.el7.x86_64 2/42 Verifying : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 3/42 Verifying : 1:java-1.8.0-openjdk-accessibility-1.8.0.362.b08-1.el7_9.x86_64 4/42 Verifying : tzdata-java-2022g-1.el7.noarch 5/42 Verifying : lksctp-tools-doc-1.0.17-2.el7.x86_64 6/42 Verifying : python3-3.6.8-18.el7.x86_64 7/42 Verifying : python3-pip-9.0.3-8.el7.noarch 8/42 Verifying : m4-1.4.16-10.el7.x86_64 9/42 Verifying : python3-rpm-generators-6-2.el7.noarch 10/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64 11/42 Verifying : spax-1.5.2-13.el7.x86_64 12/42 Verifying : perl-srpm-macros-1-8.el7.noarch 13/42 Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/42 Verifying : python-rpm-macros-3-34.el7.noarch 15/42 Verifying : glibc-headers-2.17-326.el7_9.x86_64 16/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64 17/42 Verifying : python3-devel-3.6.8-18.el7.x86_64 18/42 Verifying : 1:java-1.8.0-openjdk-src-1.8.0.362.b08-1.el7_9.x86_64 19/42 Verifying : python-srpm-macros-3-34.el7.noarch 20/42 Verifying : patch-2.7.1-12.el7_7.x86_64 21/42 Verifying : python3-libs-3.6.8-18.el7.x86_64 22/42 Verifying : 1:java-1.8.0-openjdk-javadoc-zip-1.8.0.362.b08-1.el7_9.noarch 23/42 Verifying : 1:java-1.8.0-openjdk-javadoc-1.8.0.362.b08-1.el7_9.noarch 24/42 Verifying : lksctp-tools-devel-1.0.17-2.el7.x86_64 25/42 Verifying : 1:java-1.8.0-openjdk-demo-1.8.0.362.b08-1.el7_9.x86_64 26/42 Verifying : flex-2.5.37-6.el7.x86_64 27/42 Verifying : libaio-devel-0.3.109-13.el7.x86_64 28/42 Verifying : python3-setuptools-39.2.0-10.el7.noarch 29/42 Verifying : kernel-headers-3.10.0-1160.88.1.el7.x86_64 30/42 Verifying : readline-devel-6.2-11.el7.x86_64 31/42 Verifying : bison-3.0.4-2.el7.x86_64 32/42 Verifying : glibc-devel-2.17-326.el7_9.x86_64 33/42 Verifying : expect-5.45-14.el7_1.x86_64 34/42 Verifying : dwz-0.11-3.el7.x86_64 35/42 Verifying : python3-rpm-macros-3-34.el7.noarch 36/42 Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 37/42 Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64 38/42 Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 39/42 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64 40/42 Verifying : 1:java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64 41/42 Verifying : tzdata-java-2022a-1.el7.noarch 42/42 Installed: bison.x86_64 0:3.0.4-2.el7 expect.x86_64 0:5.45-14.el7_1 flex.x86_64 0:2.5.37-6.el7 glibc-devel.x86_64 0:2.17-326.el7_9 java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-demo.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-src.x86_64 1:1.8.0.362.b08-1.el7_9 libaio-devel.x86_64 0:0.3.109-13.el7 lksctp-tools-devel.x86_64 0:1.0.17-2.el7 lksctp-tools-doc.x86_64 0:1.0.17-2.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 patch.x86_64 0:2.7.1-12.el7_7 python3.x86_64 0:3.6.8-18.el7 python3-devel.x86_64 0:3.6.8-18.el7 readline-devel.x86_64 0:6.2-11.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 Dependency Installed: dwz.x86_64 0:0.11-3.el7 glibc-headers.x86_64 0:2.17-326.el7_9 java-atk-wrapper.x86_64 0:0.30.4-5.el7 kernel-headers.x86_64 0:3.10.0-1160.88.1.el7 m4.x86_64 0:1.4.16-10.el7 perl-srpm-macros.noarch 0:1-8.el7 python-rpm-macros.noarch 0:3-34.el7 python-srpm-macros.noarch 0:3-34.el7 python3-libs.x86_64 0:3.6.8-18.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-rpm-generators.noarch 0:6-2.el7 python3-rpm-macros.noarch 0:3-34.el7 python3-setuptools.noarch 0:39.2.0-10.el7 redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos spax.x86_64 0:1.5.2-13.el7 tcl.x86_64 1:8.5.13-8.el7 Updated: java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 Dependency Updated: tzdata-java.noarch 0:2022g-1.el7 Complete! [root@node3 ~]#

11.准备安装介质

在node1上创建安装包的存放目录

mkdir -p /opt/software/openGauss chmod 755 -R /opt/software

下载安装文件

cd /opt/software/openGauss wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/5.0.0/x86/openGauss-5.0.0-CentOS-64bit-all.tar.gz

解压安装文件

tar -zxvf openGauss-5.0.0-CentOS-64bit-all.tar.gz tar -zxf openGauss-5.0.0-CentOS-64bit-om.tar.gz tar -zxf openGauss-5.0.0-CentOS-64bit-cm.tar.gz
[root@node1 ~]# mkdir -p /opt/software/openGauss [root@node1 ~]# chmod 755 -R /opt/software [root@node1 ~]# cd /opt/software/openGauss [root@node1 openGauss]# wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/5.0.0/x86/openGauss-5.0.0-CentOS-64bit-all.tar.gz --2023-04-01 22:00:00-- https://opengauss.obs.cn-south-1.myhuaweicloud.com/5.0.0/x86/openGauss-5.0.0-CentOS-64bit-all.tar.gz Resolving opengauss.obs.cn-south-1.myhuaweicloud.com (opengauss.obs.cn-south-1.myhuaweicloud.com)... 121.37.63.38, 139.159.208.230, 139.159.208.243, ... Connecting to opengauss.obs.cn-south-1.myhuaweicloud.com (opengauss.obs.cn-south-1.myhuaweicloud.com)|121.37.63.38|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 133071038 (127M) [application/gzip] Saving to: ‘openGauss-5.0.0-CentOS-64bit-all.tar.gz’ 100%[======================================================================================================================================================================================================================================>] 133,071,038 55.8MB/s in 2.3s 2023-04-01 22:00:03 (55.8 MB/s) - ‘openGauss-5.0.0-CentOS-64bit-all.tar.gz’ saved [133071038/133071038] [root@node1 openGauss]# tar -zxvf openGauss-5.0.0-CentOS-64bit-all.tar.gz openGauss-5.0.0-CentOS-64bit-cm.tar.gz openGauss-5.0.0-CentOS-64bit-om.tar.gz openGauss-5.0.0-CentOS-64bit.tar.bz2 openGauss-5.0.0-CentOS-64bit-cm.sha256 openGauss-5.0.0-CentOS-64bit-om.sha256 openGauss-5.0.0-CentOS-64bit.sha256 upgrade_sql.tar.gz upgrade_sql.sha256 [root@node1 openGauss]# tar -zxf openGauss-5.0.0-CentOS-64bit-om.tar.gz [root@node1 openGauss]# tar -zxf openGauss-5.0.0-CentOS-64bit-cm.tar.gz [root@node1 openGauss]# ll -h total 255M drwxr-xr-x 2 root root 170 Mar 29 03:23 bin drwxr-xr-x 14 root root 4.0K Mar 29 03:23 lib -rw-r--r-- 1 root root 127M Mar 29 20:11 openGauss-5.0.0-CentOS-64bit-all.tar.gz -rw-r--r-- 1 root root 105 Mar 29 03:23 openGauss-5.0.0-CentOS-64bit-cm.sha256 -rw-r--r-- 1 root root 22M Mar 29 03:23 openGauss-5.0.0-CentOS-64bit-cm.tar.gz -rw-r--r-- 1 root root 65 Mar 29 03:22 openGauss-5.0.0-CentOS-64bit-om.sha256 -rw-r--r-- 1 root root 12M Mar 29 03:22 openGauss-5.0.0-CentOS-64bit-om.tar.gz -rw-r--r-- 1 root root 65 Mar 29 03:23 openGauss-5.0.0-CentOS-64bit.sha256 -rw-r--r-- 1 root root 95M Mar 29 03:23 openGauss-5.0.0-CentOS-64bit.tar.bz2 drwxr-xr-x 10 root root 4.0K Mar 29 03:22 script drwxr-xr-x 3 root root 20 Mar 29 03:23 share drwxr-xr-x 3 root root 21 Mar 29 03:23 tool -rw------- 1 root root 65 Mar 29 03:21 upgrade_sql.sha256 -rw------- 1 root root 482K Mar 29 03:21 upgrade_sql.tar.gz -rw-r--r-- 1 root root 32 Mar 29 03:22 version.cfg [root@node1 openGauss]#

12.创建XML文件

下面是一主一备一级联配置的xml

cat >> /opt/software/openGauss/cluster_config.xml << EOF <?xml version="1.0" encoding="UTF-8"?> <ROOT> <!-- openGauss整体信息 --> <CLUSTER> <PARAM name="clusterName" value="Cluster_template" /> <PARAM name="nodeNames" value="node1,node2,node3" /> <PARAM name="gaussdbAppPath" value="/opt/huawei/install/app" /> <PARAM name="gaussdbLogPath" value="/var/log/omm" /> <PARAM name="tmpMppdbPath" value="/opt/huawei/tmp"/> <PARAM name="gaussdbToolPath" value="/opt/huawei/install/om" /> <PARAM name="corePath" value="/opt/huawei/corefile"/> <PARAM name="backIp1s" value="192.168.17.6,192.168.17.7,192.168.17.8"/> </CLUSTER> <!-- 每台服务器上的节点部署信息 --> <DEVICELIST> <!-- node1上的节点部署信息 --> <DEVICE sn="node1"> <PARAM name="name" value="node1"/> <PARAM name="azName" value="AZ1"/> <PARAM name="azPriority" value="1"/> <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> <PARAM name="backIp1" value="192.168.17.6"/> <PARAM name="sshIp1" value="192.168.17.6"/> <!-- cm主 --> <PARAM name="cmsNum" value="1"/> <PARAM name="cmDir" value="/opt/huawei/install/cm"/> <PARAM name="cmServerPortBase" value="15300"/> <PARAM name="cmServerListenIp1" value="192.168.17.6,192.168.17.7,192.168.17.8"/> <PARAM name="cmServerHaIp1" value="192.168.17.6,192.168.17.7,192.168.17.8"/> <!-- cmServerlevel目前只支持1 --> <PARAM name="cmServerlevel" value="1"/> <!-- cms主及所有备的hostname --> <PARAM name="cmServerRelation" value="node1,node2,node3"/> <!--dn--> <PARAM name="dataNum" value="1"/> <PARAM name="dataPortBase" value="26000"/> <PARAM name="dataNode1" value="/opt/huawei/install/data/dn,node2,/opt/huawei/install/data/dn,node3,/opt/huawei/install/data/dn"/> <PARAM name="dataNode1_syncNum" value="0"/> </DEVICE> <!-- node2上的节点部署信息,其中“name”的值配置为主机名称 --> <DEVICE sn="node2"> <PARAM name="name" value="node2"/> <PARAM name="azName" value="AZ1"/> <PARAM name="azPriority" value="1"/> <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> <PARAM name="backIp1" value="192.168.17.7"/> <PARAM name="sshIp1" value="192.168.17.7"/> <!-- cm --> <PARAM name="cmDir" value="/opt/huawei/install/cm"/> <PARAM name="cmServerPortStandby" value="15300"/> </DEVICE> <!-- node3上的节点部署信息,其中“name”的值配置为主机名称 --> <DEVICE sn="node3"> <PARAM name="name" value="node3"/> <PARAM name="azName" value="AZ1"/> <PARAM name="azPriority" value="1"/> <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> <PARAM name="backIp1" value="192.168.17.8"/> <PARAM name="sshIp1" value="192.168.17.8"/> <PARAM name="cascadeRole" value="on"/> <!-- cm --> <PARAM name="cmDir" value="/opt/huawei/install/cm"/> <PARAM name="cmServerPortStandby" value="15300"/> </DEVICE> </DEVICELIST> </ROOT> EOF chmod +x /opt/software/openGauss/cluster_config.xml
[root@node1 openGauss]# cat >> /opt/software/openGauss/cluster_config.xml << EOF > <?xml version="1.0" encoding="UTF-8"?> > <ROOT> > <!-- openGauss整体信息 --> > <CLUSTER> > <PARAM name="clusterName" value="Cluster_template" /> > <PARAM name="nodeNames" value="node1,node2,node3" /> > > <PARAM name="gaussdbAppPath" value="/opt/huawei/install/app" /> > <PARAM name="gaussdbLogPath" value="/var/log/omm" /> > <PARAM name="tmpMppdbPath" value="/opt/huawei/tmp"/> > <PARAM name="gaussdbToolPath" value="/opt/huawei/install/om" /> > <PARAM name="corePath" value="/opt/huawei/corefile"/> > <PARAM name="backIp1s" value="192.168.17.6,192.168.17.7,192.168.17.8"/> > > </CLUSTER> > <!-- 每台服务器上的节点部署信息 --> > <DEVICELIST> > <!-- node1上的节点部署信息 --> > <DEVICE sn="node1"> > <PARAM name="name" value="node1"/> > <PARAM name="azName" value="AZ1"/> > <PARAM name="azPriority" value="1"/> > <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> > <PARAM name="backIp1" value="192.168.17.6"/> > <PARAM name="sshIp1" value="192.168.17.6"/> > > <!-- cm主 --> > <PARAM name="cmsNum" value="1"/> > <PARAM name="cmDir" value="/opt/huawei/install/cm"/> > <PARAM name="cmServerPortBase" value="15300"/> > <PARAM name="cmServerListenIp1" value="192.168.17.6,192.168.17.7,192.168.17.8"/> > <PARAM name="cmServerHaIp1" value="192.168.17.6,192.168.17.7,192.168.17.8"/> > <!-- cmServerlevel目前只支持1 --> > <PARAM name="cmServerlevel" value="1"/> > <!-- cms主及所有备的hostname --> > <PARAM name="cmServerRelation" value="node1,node2,node3"/> > > <!--dn--> > <PARAM name="dataNum" value="1"/> > <PARAM name="dataPortBase" value="26000"/> > <PARAM name="dataNode1" value="/opt/huawei/install/data/dn,node2,/opt/huawei/install/data/dn,node3,/opt/huawei/install/data/dn"/> > <PARAM name="dataNode1_syncNum" value="0"/> > </DEVICE> > > <!-- node2上的节点部署信息,其中“name”的值配置为主机名称 --> > <DEVICE sn="node2"> > <PARAM name="name" value="node2"/> > <PARAM name="azName" value="AZ1"/> > <PARAM name="azPriority" value="1"/> > <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> > <PARAM name="backIp1" value="192.168.17.7"/> > <PARAM name="sshIp1" value="192.168.17.7"/> > <!-- cm --> > <PARAM name="cmDir" value="/opt/huawei/install/cm"/> > <PARAM name="cmServerPortStandby" value="15300"/> > </DEVICE> > > <!-- node3上的节点部署信息,其中“name”的值配置为主机名称 --> > <DEVICE sn="node3"> > <PARAM name="name" value="node3"/> > <PARAM name="azName" value="AZ1"/> > <PARAM name="azPriority" value="1"/> > <!-- 如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --> > <PARAM name="backIp1" value="192.168.17.8"/> > <PARAM name="sshIp1" value="192.168.17.8"/> > <PARAM name="cascadeRole" value="on"/> > <!-- cm --> > <PARAM name="cmDir" value="/opt/huawei/install/cm"/> > <PARAM name="cmServerPortStandby" value="15300"/> > </DEVICE> > </DEVICELIST> > </ROOT> > EOF [root@node1 openGauss]# chmod +x /opt/software/openGauss/cluster_config.xml [root@node1 openGauss]#

13.配置环境变量和重启3台虚拟机

设置环境变量

cat>> /etc/profile << EOF export LD_LIBRARY_PATH=/opt/software/openGauss/script/gspylib/clib:$LD_LIBRARY_PATH EOF

重启3台虚拟机

init 6
[root@node1 openGauss]# cat>> /etc/profile << EOF > export LD_LIBRARY_PATH=/opt/software/openGauss/script/gspylib/clib:$LD_LIBRARY_PATH > EOF [root@node1 openGauss]# init 6 [root@node2 ~]# init 6 [root@node3 ~]# init 6

14.执行交互模式前置脚本

在node1虚拟机执行过程中自动创建操作系统root用户互信和omm用户互信

cd /opt/software/openGauss/script/ ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
[root@node1 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml Parsing the configuration file. Successfully parsed the configuration file. Installing the tools on the local node. Successfully installed the tools on the local node. Are you sure you want to create trust for root (yes/no)?yes Please enter password for root Password: Successfully created SSH trust for the root permission user. Setting host ip env Successfully set host ip env. Distributing package. Begin to distribute package to tool path. Successfully distribute package to tool path. Begin to distribute package to package path. Successfully distribute package to package path. Successfully distributed package. Are you sure you want to create the user[omm] and create trust for it (yes/no)? yes Preparing SSH service. Successfully prepared SSH service. Installing the tools in the cluster. Successfully installed the tools in the cluster. Checking hostname mapping. Successfully checked hostname mapping. Creating SSH trust for [omm] user. Please enter password for current user[omm]. Password: Checking network information. All nodes in the network are Normal. Successfully checked network information. Creating SSH trust. Creating the local key file. Successfully created the local key files. Appending local ID to authorized_keys. Successfully appended local ID to authorized_keys. Updating the known_hosts file. Successfully updated the known_hosts file. Appending authorized_key on the remote node. Successfully appended authorized_key on all remote node. Checking common authentication file content. Successfully checked common authentication content. Distributing SSH trust file to all node. Distributing trust keys file to all node successfully. Successfully distributed SSH trust file to all node. Verifying SSH trust on all hosts. Successfully verified SSH trust on all hosts. Successfully created SSH trust. Successfully created SSH trust for [omm] user. Checking OS software. Successfully check os software. Checking OS version. Successfully checked OS version. Creating cluster's path. Successfully created cluster's path. Set and check OS parameter. Setting OS parameters. Successfully set OS parameters. Warning: Installation environment contains some warning messages. Please get more details by "/opt/software/openGauss/script/gs_checkos -i A -h node1,node2,node3 --detail". Set and check OS parameter completed. Preparing CRON service. Successfully prepared CRON service. Setting user environmental variables. Successfully set user environmental variables. Setting the dynamic link library. Successfully set the dynamic link library. Setting Core file Successfully set core path. Setting pssh path Successfully set pssh path. Setting Cgroup. Successfully set Cgroup. Set ARM Optimization. No need to set ARM Optimization. Fixing server package owner. Setting finish flag. Successfully set finish flag. Preinstallation succeeded. [root@node1 script]#

15.执行安装

使用root执行,给安装目录授权

cd /opt/software/openGauss/script chmod -R 775 /opt/software/openGauss/script chown -R omm:dbgrp /opt/software/openGauss/script

自定义内存参数安装

su - omm cd /opt/software/openGauss/script/ ./gs_install -X /opt/software/openGauss/cluster_config.xml \ --gsinit-parameter="--encoding=UTF8" \ --dn-guc="max_connections=1000" \ --dn-guc="max_process_memory=2GB" \ --dn-guc="shared_buffers=128MB" \ --dn-guc="bulk_write_ring_size=128MB" \ --dn-guc="cstore_buffers=16MB"
[root@node1 script]# cd /opt/software/openGauss/script [root@node1 script]# chmod -R 775 /opt/software/openGauss/script [root@node1 script]# chown -R omm:dbgrp /opt/software/openGauss/script [root@node1 script]# su - omm Last login: Sat Apr 1 22:13:41 CST 2023 [omm@node1 ~]$ cd /opt/software/openGauss/script/ [omm@node1 script]$ ./gs_install -X /opt/software/openGauss/cluster_config.xml \ > --gsinit-parameter="--encoding=UTF8" \ > --dn-guc="max_connections=1000" \ > --dn-guc="max_process_memory=2GB" \ > --dn-guc="shared_buffers=128MB" \ > --dn-guc="bulk_write_ring_size=128MB" \ > --dn-guc="cstore_buffers=16MB" Parsing the configuration file. Check preinstall on every node. Successfully checked preinstall on every node. Creating the backup directory. Successfully created the backup directory. begin deploy.. Installing the cluster. begin prepare Install Cluster.. Checking the installation environment on all nodes. begin install Cluster.. Installing applications on all nodes. Successfully installed APP. begin init Instance.. encrypt cipher and rand files for database. Please enter password for database: huawei@123 Please repeat for database: huawei@123 begin to create CA cert files The sslcert will be generated in /opt/huawei/install/app/share/sslcert/om Create CA files for cm beginning. Create CA files on directory [/opt/huawei/install/app_a07d57c3/share/sslcert/cm]. file list: ['cacert.pem', 'server.key', 'server.crt', 'client.key', 'client.crt', 'server.key.cipher', 'server.key.rand', 'client.key.cipher', 'client.key.rand'] Non-dss_ssl_enable, no need to create CA for DSS Cluster installation is completed. Configuring. Deleting instances from all nodes. Successfully deleted instances from all nodes. Checking node configuration on all nodes. Initializing instances on all nodes. Updating instance configuration on all nodes. Check consistence of memCheck and coresCheck on database nodes. Successful check consistence of memCheck and coresCheck on all nodes. Configuring pg_hba on all nodes. Configuration is completed. Starting cluster. ====================================================================== Successfully started primary instance. Wait for standby instance. ====================================================================== . Successfully started cluster. ====================================================================== cluster_state : Normal redistributing : No node_count : 3 Datanode State primary : 1 standby : 1 secondary : 0 cascade_standby : 1 building : 0 abnormal : 0 down : 0 Successfully installed application. end deploy.. [omm@node1 script]$

16.安装验证

以omm用户身份登录,命令检查CMServer状态、Cluster集群状态、数据库状态

su - omm gs_om -t status --detail

使用gsql工具登录

gsql -d postgres -p 26000 -r
[root@node1 ~]# su - omm Last login: Sat Apr 1 22:15:00 CST 2023 on pts/0 [omm@node1 ~]$ gs_om -t status --detail [ CMServer State ] node node_ip instance state ---------------------------------------------------------------------- 1 node1 192.168.17.6 1 /opt/huawei/install/cm/cm_server Primary 2 node2 192.168.17.7 2 /opt/huawei/install/cm/cm_server Standby 3 node3 192.168.17.8 3 /opt/huawei/install/cm/cm_server Standby [ Cluster State ] cluster_state : Normal redistributing : No balanced : Yes current_az : AZ_ALL [ Datanode State ] node node_ip instance state --------------------------------------------------------------------------- 1 node1 192.168.17.6 6001 /opt/huawei/install/data/dn P Primary Normal 2 node2 192.168.17.7 6002 /opt/huawei/install/data/dn S Standby Normal 3 node3 192.168.17.8 6003 /opt/huawei/install/data/dn C Cascade Standby Normal [omm@node1 ~]$ [omm@node1 ~]$ gsql -d postgres -p 26000 -r gsql ((openGauss 5.0.0 build a07d57c3) compiled at 2023-03-29 03:07:56 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# select version(); version ------------------------------------------------------------------------------------------------------------------------------------------------------ (openGauss 5.0.0 build a07d57c3) compiled at 2023-03-29 03:07:56 commit 0 last mr on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 7.3.0, 64-bit (1 row) openGauss=# \q [omm@node1 ~]$

17.开启所有外部IP访问

查询postgresql.conf参数listen_addresses

gs_guc check -I all -c "listen_addresses"

设置listen_addresses

gs_guc set -I all -c "listen_addresses='*'"

修改pg_hba.conf访问设置

gs_guc reload -N all -I all -h "host all all 0.0.0.0/0 sha256"

重启集群

gs_om -t stop && gs_om -t start
[omm@node1 ~]$ gs_guc check -I all -c "listen_addresses" The gs_guc run with the following arguments: [gs_guc -I all -c listen_addresses check ]. expected guc information: node1: listen_addresses=NULL: [/opt/huawei/install/data/dn/postgresql.conf] gs_guc check: node1: listen_addresses='localhost,192.168.17.6': [/opt/huawei/install/data/dn/postgresql.conf] Total GUC values: 1. Failed GUC values: 0. The value of parameter listen_addresses is same on all instances. listen_addresses='localhost,192.168.17.6' [omm@node1 ~]$ gs_guc set -I all -c "listen_addresses='*'" The gs_guc run with the following arguments: [gs_guc -I all -c listen_addresses='*' set ]. expected instance path: [/opt/huawei/install/data/dn/postgresql.conf] gs_guc set: listen_addresses='*': [/opt/huawei/install/data/dn/postgresql.conf] Total instances: 1. Failed instances: 0. Success to perform gs_guc! [omm@node1 ~]$ gs_guc reload -N all -I all -h "host all all 0.0.0.0/0 sha256" The gs_guc run with the following arguments: [gs_guc -N all -I all -h host all all 0.0.0.0/0 sha256 reload ]. Begin to perform the total nodes: 3. Popen count is 3, Popen success count is 3, Popen failure count is 0. Begin to perform gs_guc for datanodes. Command count is 3, Command success count is 3, Command failure count is 0. Total instances: 3. Failed instances: 0. ALL: Success to perform gs_guc! [omm@node1 ~]$ gs_om -t stop && gs_om -t start Stopping cluster. ========================================= Successfully stopped cluster. ========================================= End stop cluster. Starting cluster. ====================================================================== Successfully started primary instance. Wait for standby instance. ====================================================================== . Successfully started cluster. ====================================================================== cluster_state : Normal redistributing : No node_count : 3 Datanode State primary : 1 standby : 1 secondary : 0 cascade_standby : 1 building : 0 abnormal : 0 down : 0 Successfully started cluster. [omm@node1 ~]$

好了这样就用DBeaver和Data Studio工具访问了。

最后修改时间:2023-04-13 14:28:36
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论