1、安装ntp

yum install -y ntp

2、与一个已知的时间服务器同步

# time.nist.gov 是一个时间服务器
ntpdate time.nist.gov

3、删除本地时间并设置时区为上海

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

相关文章:

  • 2021-12-14
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案