- 论坛徽章:
- 0
|
ntp.conf配置是这样
server 192.168.8.221 prefer
broadcast 224.0.1.1 ttl 4
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0
然后touch /var/ntp/ntp.drift (我不清楚这句有什么用,不过看别人做了,我也做)
最后/etc/init.d/xntpd start
然后我用下面命令看却什么都没有,为什么?
# /usr/sbin/ntpq -p
/usr/sbin/ntpq: read: Connection refused |
|