1.调整时区

tzselect

选择Asia -> China -> Beijing Time

 

2.设置为默认时区

cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

3.同步时间

sudo apt-get install ntpdate
ntpdate us.pool.ntp.org

 

4.测试

date -R

 

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2021-12-25
  • 2021-09-27
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
相关资源
相似解决方案