centos设置时钟同步时间
2014-03-12 17:07
459 查看
用ntpdate同步时间
clock -w 硬件同步
如果出错,看一下ntp服务是否启动,可以用service ntpd stop再试
如果clock和date时间不同
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时34分39秒 -0.234710 seconds
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:42:12 CST
硬件时钟和系统时钟同步
[xxx@mtg ~]# hwclock --hctosys
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时37分37秒 -0.859714 seconds
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:37:41 CST
和时间服务器同步
[xxx@mtg ~]# ntpdate time.windows.com
15 Jan 10:45:45 ntpdate[28529]: step time server time.windows.com offset 449.438743 sec
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:45:50 CST
系统时钟和硬件时钟同步
[xxx@mtg ~]# hwclock --systohc
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:46:23 CST
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时46分28秒 -0.640991 seconds
clock -w 硬件同步
如果出错,看一下ntp服务是否启动,可以用service ntpd stop再试
如果clock和date时间不同
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时34分39秒 -0.234710 seconds
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:42:12 CST
硬件时钟和系统时钟同步
[xxx@mtg ~]# hwclock --hctosys
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时37分37秒 -0.859714 seconds
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:37:41 CST
和时间服务器同步
[xxx@mtg ~]# ntpdate time.windows.com
15 Jan 10:45:45 ntpdate[28529]: step time server time.windows.com offset 449.438743 sec
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:45:50 CST
系统时钟和硬件时钟同步
[xxx@mtg ~]# hwclock --systohc
[xxx@mtg ~]# date
2016年 01月 15日 星期五 10:46:23 CST
[xxx@mtg ~]# clock
2016年01月15日 星期五 10时46分28秒 -0.640991 seconds
相关文章推荐
- CentOS 7.x中正确设置时间与时钟服务器同步
- CentOS 6 时间,时区,设置修改及时间同步 .
- CentOS设置系统时间与网络时间同步
- centos_7.0 1503 配置笔记(二)--设置时间同步
- CentOS 6 时间,时区,设置修改及时间同步
- centos设置时间同步
- CentOS下系统时间同步和时区的修改和设置
- centos7 设置系统时间与网络同步
- CentOS设置系统时间与网络时间同步
- CentOS设置系统时间与网络时间同步
- CentOS 6 时间,时区,设置修改及时间同步
- 设置CentOS Linux系统时间自动同步
- CentOS 6 时间,时区,设置修改及时间同步
- centos设置时间自动与网络同步
- CentOS 6 时间,时区,设置修改及时间同步
- Centos 7.3 内网时间同步设置
- 问题4--centos怎么设置时间与另一台服务器时间同步
- Centos 设置 时间同步
- CentOS学习22_CentOS 6 时间,时区,设置修改及时间同步
- CentOS 6.5 设置系统时间 同步