CentOS7 修改默认时区为 北京时间

Blog1年前 (2022)更新 VoxHuang
13,294 0 0

首先同步时间

yum install -y ntpdate
ntpdate -u cn.pool.ntp.org

然后设置中国时区(北京时间)

timedatectl set-timezone Asia/Shanghai

重启OS

reboot
© 版权声明

相关文章

暂无评论

暂无评论...