Centos时间不正确问题

1、设置系统时区为上海时区

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

2、安装ntpdate

yum install -y ntpdate

3、同步网络时间

ntpdate us.pool.ntp.org

 

posted @ 2022-09-20 10:34  Binz  阅读(121)  评论(0编辑  收藏  举报