forked from judasn/Linux-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YouMeek
committed
Dec 8, 2015
1 parent
f583dac
commit d5ae54c
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` | ||
-  | ||
- 该配置解释: | ||
- 标注 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.