Ubuntu 使用哪个时间服务器?

fai*_*zal 6 time 14.04

Ubuntu 使用的定时器服务器的 URL 是什么?

设置页面只显示单选选项“从 Internet 自动”,但它不显示实际的服务器 URL,就像在 WINdows 中一样。

在此处输入图片说明

Mit*_*tch 6

ntp.ubuntu.com默认情况下,您的系统将使用 Ubuntu 的 NTP 服务器。

要查找正在使用的 NTP 服务器,请运行:

grep ^server /etc/ntp.conf
Run Code Online (Sandbox Code Playgroud)

如果出现错误,则说明未安装 NTP。要安装它,只需按键盘上的Ctrl+ Alt+T打开终端。当它打开时,运行以下命令:

sudo apt-get install ntp
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明


mur*_*uru 4

通常,ntp.ubuntu.com。示例预置文件以及服务器和网络安装方法使用的值(其中调试输出显示ntp.ubuntu.com为 NTP 服务器的值)支持这一点。要检查服务器状态和时间,您可以ntpdate在调试模式下运行(查看是否存在其他问题),或在查询模式下运行(仅查看时间):

ntpdate -d ntp.ubuntu.com # Debug mode
ntpdate -q ntp.ubuntu.com # Query mode
Run Code Online (Sandbox Code Playgroud)

  • @faizal 服务器上的时间?您可以在调试模式下运行“ntpdate”命令:“ntpdate -d ntp.ubuntu.com”。或者在查询模式下:`ntpdate -q ntp.ubuntu.com`。 (2认同)