美文网首页
centos 使用ntp自动联网校时

centos 使用ntp自动联网校时

作者: 单曲_循环 | 来源:发表于2018-03-27 23:03 被阅读0次

1,查看当前时间

[root@centos6 ~]# date
2018年 02月 01日 星期四 15:41:12 CST

  • 然而现实的时间已经是2018年3月27日了

2,安装ntp

[root@centos6 ~]# yum install ntp

3,校时

[root@centos6 ~]# ntpdate cn.pool.ntp.org
27 Mar 23:01:38 ntpdate[3958]: step time server 85.199.214.100 offset 4691805.578379 sec

4,再次查看时间发现已经改过来了

[root@centos6 ~]# date
2018年 03月 27日 星期二 23:01:41 CST

相关文章

网友评论

      本文标题:centos 使用ntp自动联网校时

      本文链接:https://www.haomeiwen.com/subject/bosecftx.html