This is how you might setup ntp.
The city's ntp server is 10.1.3.22.
I has to reinstall ntp to get it to actually install properly.
$ yum list ntp $ sudo yum install ntp $ sudo yum reinstall ntp $ sudo find / -name ntpdate $ sudo /usr/sbin/ntpdate --help $ sudo /usr/sbin/ntpdate 10.1.3.22 $ sudo /etc/init.d/ntpd start $ ps -ef | grep ntp
And if you want a shell script:
sudo yum erase ntp sudo yum install ntp sudo /usr/sbin/ntpdate 10.1.3.22 sudo /etc/init.d/ntpd start
0 Comments