Skip to content

Instantly share code, notes, and snippets.

@sodonnell
Created October 2, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sodonnell/2139caccdbbe26dda6a4e07295b12c24 to your computer and use it in GitHub Desktop.
Save sodonnell/2139caccdbbe26dda6a4e07295b12c24 to your computer and use it in GitHub Desktop.
ntpdate - centos/rhel
#!/usr/bin/env bash
# install ntp service and sync w/ the pool
# why wasn't this done on these old servers. smh
yum -y install ntp;
chkconfig ntpd on;
service ntpd start;
date -R; ntpq -p; date -R;
ntpdate -q 0.ro.pool.ntp.org 1.ro.pool.ntp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment