CentOS 系统时间校准

2023-12-06  本文已影响0人  十三_0223

1. 查询系统时间和bios时间

- 查看系统时间

date

- 查看bios时间

hwclock --show 


2. 通过date命令查询时区

 date +"%Z %z"

或者 

date -R 

3. 修改时区

date -R

4. 安装NTP

sudo yum -y install ntp

5. 使用 ntpdate 校准时间

ntpdate pool.ntp.org

6. 若想持续校准时间启动ntpd daemon

systemctl start ntpd

systemctl status ntpd

上一篇 下一篇

猜你喜欢

热点阅读