Linux开启时间同步

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

编辑时间同步的配置文件

vim /etc/chrony.conf

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

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

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

评 论

View in WeChat

Others Discussion

  • Redis各种数据类型的使用场景举例分析【三】
    Posted on 2018-11-22 17:00
  • 投票通过,PHP 8 确认引入 Union Types 2.0
    Posted on 2019-11-18 22:22
  • PHP设计模式 - 委托模式
    Posted on 2019-04-25 16:15
  • BASE原则
    Posted on 2020-12-17 16:42
  • PHP扩展安装
    Posted on 2019-06-24 11:28
  • 程序员年中考试题-段子版
    Posted on 2021-06-23 15:57
  • 一些常见的基础概念
    Posted on 2018-11-28 19:10
  • HTTP和HTTPS的区别
    Posted on 2020-08-10 23:00