Linux 系统时间同步
来源:互联网 发布:gitbook mac客户端 编辑:程序博客网 时间:2024/03/29 05:15
查看硬件时间
#hwclock --show
设置硬件时间
# hwclok --set --date="月/日/年 时:分:秒"
以硬件时间为基准,修改系统时间
# hwclock --hctosys
# hwclock -s
自动同步服务器时间:
# yum install ntp
# chkconfig ntpd on
# ntpdate pool.ntp.org
# /etc/init.d/ntpd start
1、错误:
etc]# ntpdate us.pool.ntp.org
Error : Temporary failure in name resolution
3 Jun 02:39:35 ntpdate[27430]: can't find host us.pool.ntp.org
3 Jun 02:39:35 ntpdate[27430]: no servers can be used, exiting
2、解决方法:设置DNS服务器
vi /etc/resolv.conf
添加: nameserver 8.8.8.8
nameserver 8.8.4.4
或者
nameserver 202.106.196.115
- linux 同步系统时间
- linux同步系统时间
- Linux 系统时间同步
- linux同步系统时间
- linux同步系统时间
- Linux系统时间同步
- linux 同步系统时间
- Linux系统同步时间
- linux 系统时间同步
- linux系统时间同步更新
- linux 更新同步系统时间
- Linux修改时间&同步硬件时间/系统时间
- Linux修改系统时间、硬件时间以及时间同步问题
- linux系统时间修改及同步
- Linux下自动同步系统时间
- linux系统时间修改及同步
- linux系统时间修改及同步
- linux系统时间修改及同步
- 一些文学常识。。。。。。
- unzip 查看zip
- HDU 1058 Humble Numbers (DP)
- JSP自定义标签(1)
- 静态数据多线程
- Linux 系统时间同步
- Spinner 总结1(ArrayAdapter及xml资源读取)
- Android事件分发机制完全解析,带你从源码的角度彻底理解
- android开源项目学习之(一)--ActionBarSherlock
- hdu 3221 Brute-force Algorithm 指数循环节
- Ubuntu系统的备份与恢复
- 黑马程序员——.NET笔记5
- Emacs package system
- HDUOJ 4630 2013多校第三场第10题 No Pain No Game