1. 程式人生 > >centos 內網時間同步ntp配置方法

centos 內網時間同步ntp配置方法

同步 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配置方法