yum install ntp -y vim /etc/ntp.conf <<VIM > /dev/null 2>&1 :17,17s/^/server 172.16.1.10\r/ :wq VIM service ntpd start chkconfig ntpd on