NTP on FreeBSD 12.1

Add the following to /etc/ntp.conf

pool ntp2.aliyun.com iburst
pool 1.tw.pool.ntp.org iburst
pool 0.freebsd.pool.ntp.org iburst
server ntp1.aliyun.com iburst

Add the following to /etc/rc.conf

ntpd_enable="YES"
ntpd_sync_on_start="YES"

Set ntpd_enable="YES" to start ntpd at boot time. Once ntpd_enable=YES has been added to /etc/rc.conf.
Set ntpd_sync_on_start="YES" to allow ntpd to step the clock any amount, one time at startup.
Start NTP:

service ntpd start

Reference:

Clock Synchronization with NTP

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章