/etc/ntp/ntp.conf是这么配置的
/******************************************************/
Example for the Internet server
server 192.168.1.1 #GPS
Example for a stand alone server
server 127.127.1.0
fudge 127.127.1.0 stratum 10
restrict 127.0.0.1 nomodify
driftfile /etc/ntp/ntp.drift
logfile /etc/ntp/ntp.log
//
root用户下正常启动 ntpd -dg
ntp.log能正常记录ntpd的事件:
21 Apr 08:30:45 ntpd[1085456]: synchronized to 192.168.1.1, stratum 1
.TEMP:Invalid argument85456]: can’t open /etc/ntp/ntp.drift
.TEMP:Invalid argument85456]: can’t open /etc/ntp/ntp.drift
.TEMP:Invalid argument85456]: can’t open /etc/ntp/ntp.drift
.TEMP:Invalid argument85456]: can’t open /etc/ntp/ntp.drift
//
补充下
/etc/ntp下的ntp.conf ntp.drift ntp.log的权限都是777呀,求各位解答。