How to synchronize time on Linux Server via NTP server?

Step 1: On your client machine, Login via root.
Step 2: Run below command to sync via NTP server.
# ntpdate -u server-ntp.example.com	(Where server-ntp.example.com is your NTP server)
Step 3: Now go and add your ntp server to "ntp.conf" file.
# vi /etc/ntp.conf

server server-ntp.example.com
Step 4: Start ntp service.
# systemctl start ntpd

# systemctl enable ntpd

Leave a Reply

Your email address will not be published. Required fields are marked *