1.28 Ubuntu/Debian进行NTP时间同步
Q:
Windows可以设置NTP时间同步,比如用time.windows.com、ntp1.aliyun.com。Linux 欲进行类似NTP时间同步,如何做?
A: bluerust 2021-03-04
aptitude install ntpdate
ntpdate -u 0.pool.ntp.org ntpdate -u pool.ntp.org
date -u (显示UTC时间)
D:
启用时间同步
/usr/bin/vmware-toolbox-cmd timesync enable /etc/init.d/vmware-tools restart
$ dpkg -S $(which vmware-toolbox-cmd) open-vm-tools: /usr/bin/vmware-toolbox-cmd
这是open-vm-tools带的命令
$ vmware-toolbox-cmd help
Usage: vmware-toolbox-cmd
Available commands: config device disk (not available on all operating systems) info logging script stat timesync upgrade (not available on all operating systems)