Eli*_*ter 5 lts time ntp desktop-environments 16.04
如何强制 Ubuntu 的系统时钟从时间服务器提取和更新时间?
根据Ubuntu Wiki不再支持ntpdate命令(至少在 Ubuntu Desktop LTS 16.04 中),并且我已经尝试将其用作timedatectl命令。这意味着已经回答的这个问题对于 LTS 16.04 不再有用。
ntpdate位于ntpdate包中,您可以通过安装sudo apt install ntpdate。然后阅读man ntpdate。
正如评论中提到的,需要安装该软件包,ntp而不是ntpdate在 Ubuntu 18.04+ 中安装。
记得在跑步前ntp告诉停止:ntpdate
sudo /etc/init.d/ntp stop
Run Code Online (Sandbox Code Playgroud)
然后开始ntp:
sudo /etc/init.d/ntp start
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9381 次 |
| 最近记录: |