Ubuntu 设置与同步时间
2014-06-17 15:18
169 查看
Linux的时间分为:
System Clock,系统时间,指当前Linux Kernel中的时间
Real Time Clock,硬件时间,简称RTC,主板上有电池供电的时间
查看系统时间的命令:date 或 date -R
设置系统时间的命令:date –set(月/日/年 时:分:秒)
例:#date –set “10/11/10 10:15”
上述是手动设置时间,与当前网络的时间有误差
同步网络时间[b]:[/b]
1、安装ntpdate工具
有些版本默认已安装ntpdate
cn.pool.ntp.org是位于中国的公共NTP服务器
第三步不是必须的
System Clock,系统时间,指当前Linux Kernel中的时间
Real Time Clock,硬件时间,简称RTC,主板上有电池供电的时间
查看系统时间的命令:date 或 date -R
设置系统时间的命令:date –set(月/日/年 时:分:秒)
例:#date –set “10/11/10 10:15”
上述是手动设置时间,与当前网络的时间有误差
同步网络时间[b]:[/b]
1、安装ntpdate工具
sudo apt-get install ntpdate2、设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org3、将系统时间写入硬件时间
hwclock –systohc注:
有些版本默认已安装ntpdate
cn.pool.ntp.org是位于中国的公共NTP服务器
第三步不是必须的
相关文章推荐
- ubuntu设置系统时间与网络时间同步
- ubuntu设置时区,网上同步时间
- Ubuntu设置系统时间与网络时间同步
- win7 和 ubuntu16.04 双系统时间同步设置方法
- ubuntu与windows时间设置及同步问题
- ubuntu设置系统时间与网络时间同步
- Ubuntu下启用root账户和设置固定IP && ntp解决虚拟机Ubuntu时间与windows时间不同步
- ubuntu设置系统时间与网络时间同步
- ubuntu设置系统时间与网络时间同步
- ubuntu设置时区,网上同步时间
- ubuntu设置系统时间与网络时间同步(转)
- ubuntu设置系统时间与网络时间同步
- ubuntu设置系统时间与网络时间同步
- ubuntu设置时区,网上同步时间
- ubuntu设置系统时间与网络时间同步
- ubuntu之设置时区和在线同步时间
- ubuntu设置系统时间与网络时间同步(转)
- ubuntu设置系统时间与网络时间同步
- Ubuntu Server Editon 时区设置,时间同步
- 在 Ubuntu 中使用 NTP 进行时间同步设置