Created
October 2, 2018 15:13
-
-
Save sodonnell/2139caccdbbe26dda6a4e07295b12c24 to your computer and use it in GitHub Desktop.
ntpdate - centos/rhel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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