0
点赞
收藏
分享

微信扫一扫

Centos 7 修改系统时区

鲤鱼打个滚 2022-09-28 阅读 159
编程语言

timedatectl status

Local time: 四 2014-12-25 10:52:10 CST

Universal time: 四 2014-12-25 02:52:10 UTC

RTC time: 四 2014-12-25 02:52:10

Timezone: Asia/Shanghai (CST, +0800)

NTP enabled: yes

NTP synchronized: yes

RTC in local TZ: no

DST active: n/a

设置时区的俩种方式

timedatectl set-timezone Asia/Shanghai

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

 

设置时间自动同步

yum -y install ntpdate

ntpdate time.windows.com



举报

相关推荐

0 条评论