redhat7.2 centos7.2怎么配置ntp服务器

redhat7.2 centos7.2怎么配置ntp服务器,第1张

1、yum -y install ntp
2、配置 /etc/ntpconf
restrict 127001
server cnpoolntporg
server 0poolntporg
server 1poolntporg
server 2poolntporg
restrict 0000 mask 0000 nomodify notrap noquery notrust
fudge 12712710 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0008
keys /etc/ntp/keys
3、/etc/initd/ntpd start或者systemctl start ntpd
systemctl enable ntpd
4、NTP server is listening on UDP port 123
netstat -nulp|grep 123
5、other server you can config crontab
# crontab -e
0 0 /usr/sbin/ntpdate 172161123;/sbin/hwclock -w;


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zz/13421770.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-02
下一篇 2023-08-02

发表评论

登录后才能评论

评论列表(0条)

保存