linux时间同步
sudo tee -a /etc/chrony.conf << 'EOF'
server ntp.aliyun.com iburst
server ntp1.tencent.com iburst
EOF
systemctl restart chronyd
# 验证时间源
chronyc sources -v
# 立即同步
chronyc -a makestep
sudo tee -a /etc/chrony.conf << 'EOF'
server ntp.aliyun.com iburst
server ntp1.tencent.com iburst
EOF
systemctl restart chronyd
# 验证时间源
chronyc sources -v
# 立即同步
chronyc -a makestep