Debian系统安装NTP校时包:apt-get install ntpdate
CentOS系统安装NTP校时包: yum install ntp
校时命令: ntpdate cn.pool.ntp.org
定时校正00 12 * * * /sbin/ntpdate cn.pool.ntp.org
Lniux校正时间
最新推荐文章于 2022-03-01 01:37:38 发布
本文介绍了在Debian和CentOS系统中如何安装NTP校时包,通过`apt-get install ntpdate`和`yum install ntp`命令进行安装。接着,演示了使用`ntpdate cn.pool.ntp.org`命令手动校准时间,并提供了一个定时任务,每隔一段时间自动校正系统时间,确保服务器时间的准确性和一致性。
摘要由CSDN通过智能技术生成