Pacific-Design.com

    
Home Index

1. Linux

2. NTP System Clock

Linux / NTP System Clock /

NTP - Synchronize The System Clock

$ yum install ntp ntpdate ntp-doc

$ vi /etc/ntp.conf

    server 0.rhel.pool.ntp.org
    server 1.rhel.pool.ntp.org
    server 2.rhel.pool.ntp.org

#-- Set Pacific Time Zone (Ubuntu) --#
$ ls /usr/share/zoneinfo/
$ rm /etc/localtime
$ ln -s /usr/share/zoneinfo/posix/PST8PDT /etc/localtime


$ chkconfig ntpd on
$ systemctl enable ntpd.service

$ /etc/init.d/ntpd restart

Verify NTP System Clock - using iTerm2

$ date +'%Y-%m-%d %H:%M:%S:%3N'