搭建集群后,总因为时间不一样,导致各种问题。

  1. 设定时区
dpkg-reconfigure tzdata
  • 选择Asia -> 再选择Shanghai -> OK
    Ubuntu如何同步网络时间

Ubuntu如何同步网络时间

  1. 安装ntpdate工具
 apt-get install ntpdate
  1. 将系统时间与网络同步
ntpdate cn.pool.ntp.org
  1. 将时间写入硬件
hwclock --systohc
  1. 查看时间是否已同步
date 

相关文章:

  • 2021-06-13
  • 2022-01-11
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-12-09
  • 2021-09-11
  • 2022-01-17
相关资源
相似解决方案