编辑 /etc/sysconfig/ntpd 文件,添加 -x 标志,
vi /etc/sysconfig/ntpd ------注意在双机上都要修改次配置文件
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
然后,重启 NTP 服务。
# /sbin/service ntpd restart
[root@rac2 ~]# /sbin/service ntpd restart
Shutting down ntpd: [FAILED]
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
[root@rac2 ~]# /sbin/service ntpd restart
Shutting down ntpd: [ OK ]
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
取消
评论