linux - 停止 timesyncd 轮询硬编码的 Debian 时间服务器

标签 linux debian systemd ntp

systemd-timesyncd 守护程序反复尝试联系以下硬编码(编译)时间服务器,如果既没有手动指定 NTP 服务器也没有通过 DHCP 接收:

0.debian.pool.ntp.org
1.debian.pool.ntp.org
2.debian.pool.ntp.org
3.debian.pool.ntp.org

由于我在公司代理后面操作,因此永远无法成功访问这些服务器。有没有办法防止这种无意义的轮询(无需重新编译)?

最佳答案

您可以(现在)configure timesyncd/etc/systemd/timesyncd.conf 中使用另一个 NTP 服务器:

NTP=your_corporate_internal_time_server

大多数公司网络都有其中之一,尤其是在阻止 ntp 流量时。 它通常类似于 time.corp_domain.com 或 ntp.corp_domain.com。

关于linux - 停止 timesyncd 轮询硬编码的 Debian 时间服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43093636/

相关文章:

linux - ERROR : In file './docker-compose.yml' , service must be a mapping, not a NoneType., 如何解决这个问题

linux - wglGetProcAddress/glXGetProcAddress 如何与图形驱动程序通信?

linux - 当 bash 中的命令 "if there' 是 file.txt 中的 $string 时...做..."

c# - 如何在单声道中获取 linux 分发信息?

c - 选择阻止 fifo 读取

bash - 如何在 sudoers.d 文件中添加 DEBIAN_FRONTEND=noninteractive?

docker/垃圾桶/sh : 1: : not found miniconda3

java - 野蝇作为系统服务

systemd - systemd的 'oneshot'和 'simple'服务类型有什么区别?

service - 事件 : failed (Result: service-start-limit-hit)