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

首先同步时间

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

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

timedatectl set-timezone Asia/Shanghai

重启OS

reboot

 

posted @ 2019-04-28 04:26  Comex  阅读(8027)  评论(0编辑  收藏  举报