您的位置:首页 > 运维架构 > Linux

【Linux笔记】linux系统时间错误

2013-06-20 17:18 344 查看
当前时间 2013-06-20 17:09
[root@localhost ~]# date
Fri Jun 21 01:07:14 CST 2013
[root@localhost ~]#
同步时间的解决方法:
使用ntp服务器来效验时间
1.检查系统是否安装ntp
[root@localhost ~]# rpm -q ntp
ntp-4.2.4p8-3.el6.centos.i686 //系统已经安装
[root@localhost ~]#
2.如果未安装ntp,可以通过yum安装

[root@localhost ~]# yum -y install ntp
3.同步时间:ntpdate ntp1.nl.net



4.设置硬件时间和系统时间一直

[root@localhost ~]# /sbin/hwclock --systohc
至此Linux系统时间错误更正完成

本文出自 “水滴石穿” 博客,请务必保留此出处http://pengyl.blog.51cto.com/5591604/1226055
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: