Linux主机间同步时间

主机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说明主机不能作为时间服务器对外提供时间服务,只能联系公司的系统网络人员了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章