与 NTP 服务器同步其 Linux

来自Chinese Ikoula Wiki
Ikbot讨论 | 贡献2017年2月9日 (四) 15:58的版本 (创建页面,内容为“<br />这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码<br /><span data-transla...”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
Jump to navigation Jump to search


这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码

介绍

有时,有的是需要有高精度配置的在您的计算机上的时间。特别是案件为分布式系统的良好运作。

因此,让我们研究激活和 NTP 客户端在使用舰碰撞系统的配置 (Debian 8 / CentOS / RHEL).

地方

首先,检查的时间服务同步的状态 :

$ sudo systemctl status systemd-timesyncd.service
   systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)
   Active: inactive (dead)
     Docs: man:systemd-timesyncd.service(8)

然后确保通过 NTP 服务同步是不活跃的与 "启用 NTP: 不。" et "NFTP 同步: 不。".

$ sudo timedatectl
   Local time: mer. 2016-09-16 09:39:44 CET
   Universal time: mer. 2016-09-16 08:39:44 UTC
   RTC time: mer. 2016-09-16 08:39:44
   Time zone: Europe/Paris (CET, +0100)
   NTP enabled: no
   NTP synchronized: no
   RTC in local TZ: no
   DST active: no
 Last DST change: DST ended at
                  dim. 2015-10-25 02:59:59 CEST
                  dim. 2015-10-25 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
                  dim. 2016-03-27 01:59:59 CET
                  dim. 2016-03-27 03:00:00 CEST

然后编辑该文件 /etc/systemd/timesyncd.conf :

[Time]
Servers=ntp01.ikoula.com

从开始到结束时间同步服务 :

$ sudo systemctl start systemd-timesyncd.service; sudo systemctl enable systemd-timesyncd.service

Votre service NTP est maintenant actif et l'heure se synchronisera avec les 服务器s NTP d'Ikoula.



这篇文章似乎对你有用 ?

0



您未被允许发表评论。