Skip to content

Instantly share code, notes, and snippets.

@lee-pai-long
Last active January 20, 2016 17:52
Show Gist options
  • Save lee-pai-long/5bfe282a2e1f4dc1a46c to your computer and use it in GitHub Desktop.
Save lee-pai-long/5bfe282a2e1f4dc1a46c to your computer and use it in GitHub Desktop.

[CentOS] Install NTP client

Install package

$ [sudo] yum install ntp

Activate ntp service on start

$ [sudo] chkconfig ntpd on

Update date manually

$ [sudo] ntpdate <pool.ntp.org>

or

$ [sudo] ntpdate <local_servername_or_ip>

Launch the service

$ [sudo] service ntpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment