- [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 模式
来源: http://www.bubuko.com/infodetail-2587394.html