修改linux系统时间和同步

date                                                查看当前时间
date -s 15:14:13                                    修改时间
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 修改时区
yes 
crontab -e                                          编写计划任务
*/3 * * * * ntpdate 0.rhel.pool.ntp.org && hwclock -w 
ESC后wq
yum -y install ntpdate*                             安装ntpdate服务

  

posted @ 2015-03-26 17:50  一起走过的路  阅读(238)  评论(0编辑  收藏  举报