最近弄docker烦躁的一笔,时区问题踩了不少坑,为了以后再遇到类似问题再花时间查资料,特记录一下。。。
Ubuntu:
echo "Asia/Shanghai" > /etc/timezone
apt-get install tzdata
dpkg-reconfigure -f noninteractive tzdata

centos7
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

相关文章:

  • 2022-02-02
  • 2021-10-30
  • 2022-02-03
  • 2021-07-17
  • 2021-06-06
  • 2022-01-10
  • 2021-06-27
猜你喜欢
  • 2022-02-15
  • 2021-04-12
  • 2021-12-05
  • 2022-12-23
  • 2021-12-21
  • 2021-11-05
  • 2021-11-19
相关资源
相似解决方案