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 # 查看当前时间


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM