在Ubuntu系统中,可以通过以下步骤来设置系统时间同步:
打开终端(Ctrl+Alt+T)。
使用以下命令安装ntpdate工具:
sudo apt-get update
sudo apt-get install ntpdate
sudo ntpdate ntp.ubuntu.com
*/5 * * * * root ntpdate ntp.ubuntu.com
这将使系统每5分钟同步一次时间。
sudo service cron restart
通过以上步骤,就可以设置Ubuntu系统时间同步。
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: ubuntu18.04如何更新软件源