Linux-Networking

如何同步兩個或多個分佈式無線節點的時序?

  • November 19, 2019

什麼是同步兩個或多個分佈式無線節點的時序(時鐘)的最佳方法/方法,以使它們彼此相干而不是滑週期?

通常,我們會使用ntp,ntpdate或之類的東西chrony

apt-get install ntp
[or yum -y install ntp]

cat <<EOF >/etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
server pool.ntp.org
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
EOF
systemctl start ntp
systemctl enable ntp

引用自:https://serverfault.com/questions/992459