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

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

# Options for ntpdatesql

OPTIONS="-U ntp -s -b"网络


# Number of retries before giving upide

RETRIES=2server


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

SYNC_HWCLOCK=yesit

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

# List of servers used for initial synchronization.class


172.230.156.201sed


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

相关文章
相关标签/搜索