Skip to content

Commit

Permalink
2015-12-08
Browse files Browse the repository at this point in the history
  • Loading branch information
YouMeek committed Dec 8, 2015
1 parent f583dac commit d5ae54c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
41 changes: 41 additions & 0 deletions NTP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<h1 id="ntp0">NTP(Network Time Protocol)介绍</h1>

------

* [NTP(Network Time Protocol)介绍](#ntp0)
* [NTP 安装](#ntp1)
* [NTP 服务器配置文件常用参数](#ntp2)
* [NTP 资料](#ntp3)

------

<h2 id="ntp1">NTP 安装</h2>

- 查看是否已安装:
- CentOS:`rpm -qa | grep ntp-*`
- Ubuntu:`dpkg -l | grep ntp-*`

- 安装:
- CentOS 6:`sudo yum install -y ntp`
- Ubuntu:`sudo apt-get install -y ntp`

<h2 id="ntp2">NTP 服务器配置文件常用参数</h2>

- 世界上可以校对时间节点:<http://www.pool.ntp.org/zh>
- 中国时间校对服务器节点:<http://www.pool.ntp.org/zone/cn>
- 配置文件介绍:`sudo vim /etc/ntp.conf`
- ![NTP 服务器配置文件常用参数](images/NTP-a-1.jpg)
- 该配置解释:
- 标注 1 是默认内容,我们这里进行了注释。
- 标注 2 是新增内容,表示使用中国时间校对服务器节点地址。
- 启动服务:
- `sudo service ntpd start`
- 服务加到启动项
- `sudo apt-get install -y sysv-rc-conf `
- `sudo sysv-rc-conf ntpd on`

<h2 id="ntp3">NTP 资料</h2>

- <http://www.jikexueyuan.com/course/1710.html>
- <http://www.pool.ntp.org/zh>
- <http://blog.kissdata.com/2014/10/28/ubuntu-ntp.html>
8 changes: 8 additions & 0 deletions Ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ find / -name 文件名(文件名可以用使用通配符)

---

> NTP(Network Time Protocol)
- 介绍:
- 安装:`sudo apt-get install -y ntp`
- 资料:
- [NTP 常用功能](NTP.md)

---




Expand Down
Binary file added images/NTP-a-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5ae54c

Please sign in to comment.