Linux开启时间同步

2018-10-17 11:00 By "Powerless" 2717 0 2

编辑时间同步的配置文件

vim /etc/chrony.conf

在头部时间服务器列表中增加:server 2.cn.pool.ntp.org iburst

systemctl restart chronyd  //重启时间服务 
chronyc sources  //手动同步一下时间

这样时间就同步完成了,可以使用:date 命令查看当前的系统时间

评 论

View in WeChat

Others Discussion

  • 必学十大经典排序算法,看这篇就够了
    Posted on 2019-11-18 16:30
  • PHP设计模式 - 委托模式
    Posted on 2019-04-25 16:15
  • 初识七层、五层、四层网络协议
    Posted on 2021-04-09 16:52
  • PHP7不兼容性
    Posted on 2018-03-07 15:59
  • 浏览器访问网站经历的步骤-Html
    Posted on 2018-11-28 18:48
  • PHP练习-无重复字符的最长子串
    Posted on 2020-09-17 18:03
  • QPS、TPS、RT、吞吐量到底是什么
    Posted on 2020-02-02 01:15
  • ACID原则
    Posted on 2020-12-17 16:36