ntp时间同步简介
2024-09-01 14:54:23
网络时间协议(Network Time Protocol)
安装
# sudo apt-get install ntp
官网下载:
http://www.ntp.org/downloads.html
本地加速下载:
http://download.csdn.net/download/zhangxuechao_/9861088
ntpd
配置文件:
# vi /etc/ntp.conf
ntpdate
更新失败:
# sudo ntpdate cn.pool.ntp.org
4 Jun 22:33:39 ntpdate[10076]: the NTP socket is in use, exiting
解决办法:
# /etc/init.d/ntp stop
# sudo ntpdate cn.pool.ntp.org
4 Jun 22:39:19 ntpdate[10240]: step time server 173.255.246.13 offset 2075762.306339 sec
# /etc/init.d/ntp start
ntpd和ntpdate的区别
ntpd不仅仅是时间同步服务器,还可以做客户端与标准时间服务器进行同步时间,而且是平滑同步;而ntpdate立即同步
最新文章
- LeetCode:Gray Code(格雷码)
- Erlang第一课----基本变量
- Launchpad添加openPGP keys
- libswscale图像格式转换与放大缩小
- Html笔记(十)XHTML XML
- Qt入门(5)——用Qt控件创建一个电话本界面
- RH033读书笔记(12)-Lab 13 Finding and Processing Files
- Linux 中 sudo、su命令
- Python 之 hello world
- 亲密接触Redis-第一天
- Numbers
- 自定义 Git - 配置 Git
- freemarker中对null值问题的处理
- input radio 与label文字对齐
- Yii CDbCriteria 常用方法
- US Customs bond DDP 船运
- [How to] 使用HBase协处理器---Endpoint服务端的实现
- 执行Shell脚本的4种方法及区别介绍(转)
- Java之Undeclared Checked Exception
- linux 查看cpu相关信息命令