与 NTP 服务器同步其 Linux
fr:Synchroniser son serveur Linux avec NTP
en:Synchronize its Linux with NTP server
es:Sincronizar su Linux con servidor NTP
pt:Sincronizar o seu Linux com o servidor NTP
it:Sincronizzare il suo Linux con il server NTP
nl:Zijn Linux synchroniseren met de NTP-server
de:Ihr Linux mit NTP-Server synchronisieren
zh:与 NTP 服务器同步其 Linux
ar:مزامنة في لينكس مع ملقم NTP
ja:その Linux を NTP サーバーと同期します。
pl:Synchronizacji z serwerem NTP jego Linux
ru:Синхронизируйте свой Linux с NTP-сервером
ro:Sincronizarea sale Linux cu NTP server
he:סינכרון לינוקס שלה עם שרת NTP
这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码
介绍
有时,有的是需要有高精度配置的在您的计算机上的时间。特别是案件为分布式系统的良好运作。
因此,让我们研究激活和 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.
这篇文章似乎对你有用 ?
开启评论自动刷新