...
Code Block |
---|
$ 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:
Code Block |
---|
sudo yum erase ntp
sudo yum install ntp
sudo /usr/sbin/ntpdate 10.1.3.22
sudo /etc/init.d/ntpd start
|