opengauss5.0.0于2023年3月31日正式发布,本文基于opengauss5.0.0企业版在centos_x86_64操作系统上搭建一主一备一级联测试环境,并将操作记录共享出来,希望能帮到有需要的小伙伴
https://www.opengauss.org/zh/news/2023-03-31/
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<
> export lang=en_us.utf-8
> eof
[root@node1 ~]#
[root@node2 ~]# cat>> /etc/profile<
> export lang=en_us.utf-8
> eof
[root@node2 ~]#
[root@node3 ~]# cat>> /etc/profile<
> 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源安装依赖的软件包,注意m6米乐安卓版下载官网文档里要求的依赖不全,最好安装下面所有的软件包
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
eof
chmod x /opt/software/opengauss/cluster_config.xml
[root@node1 opengauss]# cat >> /opt/software/opengauss/cluster_config.xml << eof
> "1.0" encoding="utf-8"?>
>
>
>
> "clustername" value="cluster_template" />
> "nodenames" value="node1,node2,node3" />
>
> "gaussdbapppath" value="/opt/huawei/install/app" />
> "gaussdblogpath" value="/var/log/omm" />
> "tmpmppdbpath" value="/opt/huawei/tmp"/>
> "gaussdbtoolpath" value="/opt/huawei/install/om" />
> "corepath" value="/opt/huawei/corefile"/>
> "backip1s" value="192.168.17.6,192.168.17.7,192.168.17.8"/>
>
>
>
>
>
> "node1">
> "name" value="node1"/>
> "azname" value="az1"/>
> "azpriority" value="1"/>
>
> "backip1" value="192.168.17.6"/>
> "sship1" value="192.168.17.6"/>
>
>
> "cmsnum" value="1"/>
> "cmdir" value="/opt/huawei/install/cm"/>
> "cmserverportbase" value="15300"/>
> "cmserverlistenip1" value="192.168.17.6,192.168.17.7,192.168.17.8"/>
> "cmserverhaip1" value="192.168.17.6,192.168.17.7,192.168.17.8"/>
>
> "cmserverlevel" value="1"/>
>
> "cmserverrelation" value="node1,node2,node3"/>
>
>
> "datanum" value="1"/>
> "dataportbase" value="26000"/>
> "datanode1" value="/opt/huawei/install/data/dn,node2,/opt/huawei/install/data/dn,node3,/opt/huawei/install/data/dn"/>
> "datanode1_syncnum" value="0"/>
>
>
>
> "node2">
> "name" value="node2"/>
> "azname" value="az1"/>
> "azpriority" value="1"/>
>
> "backip1" value="192.168.17.7"/>
> "sship1" value="192.168.17.7"/>
>
> "cmdir" value="/opt/huawei/install/cm"/>
> "cmserverportstandby" value="15300"/>
>
>
>
> "node3">
> "name" value="node3"/>
> "azname" value="az1"/>
> "azpriority" value="1"/>
>
> "backip1" value="192.168.17.8"/>
> "sship1" value="192.168.17.8"/>
> "cascaderole" value="on"/>
>
> "cmdir" value="/opt/huawei/install/cm"/>
> "cmserverportstandby" value="15300"/>
>
>
>
> 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工具访问了。