码迷,mamicode.com
首页 > 其他好文 > 详细

centos 内网时间同步ntp配置方法

时间:2018-05-04 18:22:51      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:同步   ntp   内网时间服务器   

[root@bj-1 mysql]# cat /etc/sysconfig/ntpdate 

# Options for ntpdate

OPTIONS="-U ntp -s -b"


# Number of retries before giving up

RETRIES=2


# Set to 'yes' to sync hw clock after successful ntpdate

SYNC_HWCLOCK=yes

[root@bj-1 mysql]# cat /etc/ntp/step-tickers 

# List of servers used for initial synchronization.


172.230.156.201


#这种方式是在内网所有机器指向201,201上在去网络上同步时间,属于一主多从ntp模式

centos 内网时间同步ntp配置方法

标签:同步   ntp   内网时间服务器   

原文地址:http://blog.51cto.com/amunlinux/2112763

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!