3. Proxmox VE
配置 NTP
- 手动
...
pool ntp7.aliyun.com iburst //阿里云
pool cn.ntp.org.cn iburst //中国
pool edu.ntp.org.cn iburst //中国教育网
pool hk.ntp.org.cn iburst //中国香港
pool jp.ntp.org.cn iburst //日本
...
systemctl restart ntp
ntpq -p
- 脚本配置
set-ntp.sh
#!/bin/bash
apt -y install ntp
sed -i '/^pool 0./i pool ntp1.aliyun.com iburst' /etc/ntp.conf
sed -i "/^pool 0./i pool ntp.ntsc.ac.cn iburst" /etc/ntp.conf
sed -i "s/pool 0./#pool 0./g" /etc/ntp.conf
sed -i "s/pool 1./#pool 1./g" /etc/ntp.conf
sed -i "s/pool 2./#pool 2./g" /etc/ntp.conf
sed -i "s/pool 3./#pool 3./g" /etc/ntp.conf
systemctl restart ntp
ntpq -p