赞
踩
- [admin@localhost ~]$ timedatectl
- Local time: Mon 2024-04-15 18:09:19 PDT
- Universal time: Tue 2024-04-16 01:09:19 UTC
- RTC time: Tue 2024-04-16 01:09:19
- Time zone: America/Los_Angeles (PDT, -0700)
- NTP enabled: yes
- NTP synchronized: yes
- RTC in local TZ: no
- DST active: yes
- Last DST change: DST began at
- Sun 2024-03-10 01:59:59 PST
- Sun 2024-03-10 03:00:00 PDT
- Next DST change: DST ends (the clock jumps one hour backwards) at
- Sun 2024-11-03 01:59:59 PDT
- Sun 2024-11-03 01:00:00 PST
sudo timedatectl set-timezone 'Asia/Shanghai'
yum install -y ntp
NTP Servers in China, cn.pool.ntp.org
- server 0.cn.pool.ntp.org
- server 1.cn.pool.ntp.org
- server 2.cn.pool.ntp.org
- server 3.cn.pool.ntp.org
- vi /etc/ntp.conf
-
- #在服务器时间池加上中国的
-
- # Use public servers from the pool.ntp.org project.
- # Please consider joining the pool (http://www.pool.ntp.org/join.html).
- server 0.centos.pool.ntp.org iburst
- server 1.centos.pool.ntp.org iburst
- server 2.centos.pool.ntp.org iburst
- server 3.centos.pool.ntp.org iburst
-
- server 0.cn.pool.ntp.org
- server 1.cn.pool.ntp.org
- server 2.cn.pool.ntp.org
- server 3.cn.pool.ntp.org
$ sudo systemctl start ntpd
$ sudo systemctl enable ntpd
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。