centos 调整时间

1. 查看当前系统时间
 
# date -R

Fri, 01 Feb 2013 09:48:06 +0800

 2. 安装ntp时间服务,以下信息表明已经安装过了
 
# yum install ntp

 3. 
同步时间
 
#ntpdate us.pool.ntp.org

4. 修正时区
# cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 

5. 重启时间服务
 
# /etc/init.d/ntpd restart

6. 验证时间服务已经运行
 
# pgrep ntpd

 7. 
将时间写入CMOS
 
# hwclock -w

 8.查看当前系统时间
 
# date -R
 


你可能感兴趣的:(centos 调整时间)