linux校准时间

记录一下校准时间操作的执行步骤:

首先使用 date 查看当前时间是否准确

校准时间命令

 ntpdate cn.pool.ntp.org

如果没有权限:

sudo -i

会出现输入密码,直接输入密码即可

再次执行校准时间操作命令

ntpdate cn.pool.ntp.org

操作完成之后,查看时间是否准确

date

猜你喜欢

转载自www.cnblogs.com/mr-wuxiansheng/p/8947913.html