系统相关
首页 > 系统相关> > CentOS 7 查看系统时间、更新系统时间

CentOS 7 查看系统时间、更新系统时间

作者:互联网

一、查看系统时间、硬件时间
# date // 查看系统时间


#hwclock // 查看硬件时间


二、时间服务器上的时间同步的方法
安装ntpdate工具

# yum -y install ntp ntpdate

设置系统时间与网络时间同步

# ntpdate cn.pool.ntp.org

将系统时间写入硬件时间

# hwclock --systohc
 

标签:hwclock,CentOS,查看,ntpdate,系统,硬件,时间
来源: https://blog.csdn.net/weixin_41672684/article/details/121734098