This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_ntp [2020/10/25 16:41] val [Синхронизация времени с сервером] |
сервис_ntp [2024/06/21 07:29] (current) val [Debian/Ubuntu] |
||
---|---|---|---|
Line 24: | Line 24: | ||
==== Debian/Ubuntu ==== | ==== Debian/Ubuntu ==== | ||
<code> | <code> | ||
+ | ubuntu24# apt remove systemd-timesyncd | ||
+ | |||
root@gate:~# apt install ntp | root@gate:~# apt install ntp | ||
</code> | </code> | ||
Line 40: | Line 42: | ||
#restrict 192.168.0.0 mask 255.255.0.0 | #restrict 192.168.0.0 mask 255.255.0.0 | ||
#server 127.127.1.1 | #server 127.127.1.1 | ||
- | </code> | + | </code><code> |
- | <code> | + | |
gate# service ntp restart | gate# service ntp restart | ||
</code> | </code> | ||
Line 47: | Line 48: | ||
<code> | <code> | ||
gate# ntpq -pn | gate# ntpq -pn | ||
- | + | </code><code> | |
- | gate# ntptrace | + | *128.0.142.251 ... |
+ | +193.192.36.3 ... | ||
+ | +188.225.9.167 ... | ||
+ | </code><code> | ||
+ | gate# watch ntptrace | ||
gate# apt install ntpstat | gate# apt install ntpstat |