centos查看系统时间、更新系统时间

原文出处:https://blog.csdn.net/u011095110/article/details/78331556

一、查看系统时间

查看系统时间的命令: date
二、查看硬件时间

查看硬件时间的命令:  hwclock


三、时间服务器上的时间同步的方法

1.  安装ntpdate工具
# yum -y install ntp ntpdate
2.  设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
3.  将系统时间写入硬件时间
# hwclock --systohc
--------------------- 
作者:King-Long 
来源:CSDN 
原文:https://blog.csdn.net/u011095110/article/details/78331556 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/liaoliaoanxiao/article/details/88549638