linux服务器ntp校对时间

安装NTP校时包

yum install -y ntp

校时命令:

ntpdate cn.pool.ntp.org

注:cn.pool.ntp.org是ntp网络授时组织的中国授时源

每天0点间自动校时,将命令加入Cron:

0 0 * * * ntpdate cn.pool.ntp.org

本文链接:https://jeff.xin/post/50.html

--EOF--

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。