Differences
This shows you the differences between two versions of the page.
linux_wiki:ntp [2016/01/08 14:04] billdozor [Network Time Protocol (NTP)] |
linux_wiki:ntp [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Network Time Protocol (NTP) ====== | ||
- | **General Information** | ||
- | |||
- | Time is important on any system for automated jobs, log files, security, etc. This quick how to will get NTP up and running on a Linux server. | ||
- | |||
- | **Checklist** | ||
- | * Distro: Enterprise Linux 6 | ||
- | |||
- | ---- | ||
- | |||
- | ===== Install NTP Packages ===== | ||
- | |||
- | The packages: | ||
- | * ntp - the ntp daemon service | ||
- | * ntpdate - a utility to run ad-hoc for time setting | ||
- | * ntp-doc - ntp documentation | ||
- | |||
- | <code bash> | ||
- | yum install ntp ntpdate ntp-doc | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== NTP Service On Boot ===== | ||
- | |||
- | <code bash> | ||
- | chkconfig ntpd on | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Ad-hoc Initial Time Sync ===== | ||
- | |||
- | <code bash> | ||
- | ntpdate pool.ntp.org | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Edit / | ||
- | |||
- | Visit http:// | ||
- | |||
- | They most likely are still (2015-01-07): | ||
- | * server 0.north-america.pool.ntp.org | ||
- | * server 1.north-america.pool.ntp.org | ||
- | * server 2.north-america.pool.ntp.org | ||
- | * server 3.north-america.pool.ntp.org | ||
- | |||
- | Add the above server lines to / | ||
- | <code bash> | ||
- | vim / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Start NTP Service ===== | ||
- | |||
- | Finally, start the NTP daemon service. | ||
- | <code bash> | ||
- | / | ||
- | </ |