服务器的时间同步网络时间的方法
1.安装ntpdate工具
yum -y install ntp ntpdate
2.设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
3.将系统时间写入硬件时间
hwclock --systohc
4.强制系统时间写入CMOS中防止重启失效
hwclock -w
或
clock -w
完成这四部服务器就是北京时间了
© 版权声明
THE END
服务器的时间同步网络时间的方法
1.安装ntpdate工具
yum -y install ntp ntpdate
2.设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
3.将系统时间写入硬件时间
hwclock --systohc
4.强制系统时间写入CMOS中防止重启失效
hwclock -w
或
clock -w
完成这四部服务器就是北京时间了
暂无评论内容