三台主机都需配置
[root@node1 ~]# yum install chrony
[root@node1 ~]# vim /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server ntp1.aliyun.com iburst
开机自起
[root@node1 ~]# systemctl enable --now chronyd
查看
[root@node1 ~]# chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 120.25.115.20 2 6 17 38 -313us[+1107us] +/- 29ms
4.部署jdk
[root@node1 ~]# ll
total 124452
-rw-------. 1 root root 1450 Jul 21 21:15 anaconda-ks.cfg
-rw-r--r-- 1 root root 127431820 Aug 2 16:22 jdk-8u261-linux-x64.rpm
发送给node2,node3
[root@node1 ~]# scp jdk-8u261-linux-x64.rpm node2:/root
The authenticity of host 'node2 (192.168.43.112)' can't be established.
ECDSA key fingerprint is SHA256:X/a9lO6iG4mWSFRUk+rb+bkBMiPOES32ySUKJaWcejM.
ECDSA key fingerprint is MD5:d0:c5:f7:5a:26:33:d3:bb:a0:c1:f9:5c:57:68:00:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node2,192.168.43.112' (ECDSA) to the list of known hosts.
root@node2's password:
jdk-8u261-linux-x64.rpm 100% 122MB 98.8MB/s 00:01
[root@node1 ~]# scp jdk-8u261-linux-x64.rpm node3:/root
The authenticity of host 'node3 (192.168.43.113)' can't be established.
ECDSA key fingerprint is SHA256:X/a9lO6iG4mWSFRUk+rb+bkBMiPOES32ySUKJaWcejM.
ECDSA key fingerprint is MD5:d0:c5:f7:5a:26:33:d3:bb:a0:c1:f9:5c:57:68:00:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node3,192.