database's docs

3.3.0 RAC-配置ntp服务


1 配置NTP

1) 安装ntp服务

yum install ntp -y

2) 配置ntp

vim /etc/ntp.conf
******************************************************
# 配置时间服务器
server 10.8.0.1 iburst
******************************************************

# 配置服务参数-x,来防止ntp服务同步的时间被回退
vim /etc/sysconfig/ntpd
******************************************************
# 增加-x
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"
******************************************************

3) 重启ntp服务

service ntpd restart
chkconfig ntpd on

4) 查看ntp状态

ntpstat
synchronised to NTP server (10.8.0.1) at stratum 3
   time correct to within 27926 ms
   polling server every 64 s

ntpq -p
    remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.8.0.1        17.253.84.125    2 u   34   64    3    0.924  -19943.  10.250