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 @ 2020-08-16 18:14  宇的季节  阅读(4842)  评论(1编辑  收藏  举报