【分享】Linux centos 校准时间

yum -y install ntp

ntpdate 1.cn.pool.ntp.org # 根据网络时间校正

tzselect # 选择时区:5Asia->9 China->1->Beijing Time ->1 yes

echo 'TZ='Asia/Shanghai'; export TZ' > ~/.profile # 时区信息写入配置文件

hwclock -w  # 软件时间同步至硬件时间

date # 查看当前时间

posted @ 2021-06-29 09:17  虹梦未来  阅读(31)  评论(0)    收藏  举报  来源