主機B需要同步主機A的時間
1)A停止ntpd服務
service ntpd stop
2)修改A的ntp配置文件:/etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 10
3)A啓動ntpd服務
service ntpd start
watch ntpq -p
4)B同步A的時間
ntpdate A地址
如果出現Operation not permitted說明主機不能作爲時間服務器對外提供時間服務,只能聯繫公司的系統網絡人員了