stop
or restart
as the argumentinstead of start
.disable monitor
toyour /etc/ntp.conf file. Disabling monitoring prevents unwanted remotequeries that use commands from older versions of NTP, such as monlist.123
to UDP traffic to allow theother servers to connect to it. You can open port 123
for UDP trafficwith the following iptables arguments:ntpdate
.ntpdate
command syncs your clock with an NTP server. It’ssimilar to what the NTP server does on a regular basis. The ntpd
programis a separate package on Ubuntu® operating systems and Debian®. The otherdistributions install ntpdate
at the time of ntpd installation. Touse ntpdate
, Ubuntu operating system and Debian users must first install it.cron
to runntpdate
. Otherwise, run the NTP server because it uses less bandwidth andkeeps time more accurately by tracking your clock’s drift over time andadjusting accordingly. Use ntpdate
for testing purposes only.ntpdate
command does not run when the NTP server is running. If yourun ntpdate
and get a response like “the NTP socket is in use,” thismeans your NTP server is running. Stop it with the appropriate commandfor your distribution:ntpdate
with the server you want to sync against as anargument. For example, to tell ntpdate
to try and sync with“pool.ntp.org”, run the following command: