Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:configure_a_system_to_use_time_services [2016/02/29 21:51] billdozor created |
linux_wiki:configure_a_system_to_use_time_services [2018/03/18 22:08] billdozor [Time Options] |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/ | + | Managing time using different methods. |
---- | ---- | ||
+ | |||
+ | ===== Time Options ===== | ||
+ | |||
+ | * ntpd => the default in RHEL 5/6 | ||
+ | * chronyd => the default in RHEL 7 (ntpd can still be used instead) | ||
+ | * Chronyd has faster time sync than ntpd and can recover from network connection problems faster. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Chrony ===== | ||
Two new RHEL 7 tools: | Two new RHEL 7 tools: | ||
Line 11: | Line 21: | ||
* timedatectl - time and date settings information | * timedatectl - time and date settings information | ||
+ | \\ | ||
View current detailed time information | View current detailed time information | ||
<code bash> | <code bash> | ||
Line 16: | Line 27: | ||
</ | </ | ||
+ | \\ | ||
View available timezones | View available timezones | ||
<code bash> | <code bash> | ||
Line 21: | Line 33: | ||
</ | </ | ||
+ | \\ | ||
Set timezone | Set timezone | ||
<code bash> | <code bash> | ||
Line 26: | Line 39: | ||
</ | </ | ||
+ | \\ | ||
Set system clock to 12:30pm and 10 seconds: | Set system clock to 12:30pm and 10 seconds: | ||
<code bash> | <code bash> | ||
Line 31: | Line 45: | ||
</ | </ | ||
+ | \\ | ||
Enable the use of NTP for time | Enable the use of NTP for time | ||
<code bash> | <code bash> | ||
Line 36: | Line 51: | ||
</ | </ | ||
+ | \\ | ||
NTP service config file (chronyd) | NTP service config file (chronyd) | ||
* / | * / | ||
+ | \\ | ||
NTP server entry examples in / | NTP server entry examples in / | ||
<code bash> | <code bash> | ||
Line 48: | Line 65: | ||
* If you make any changes, chronyd service must be restarted | * If you make any changes, chronyd service must be restarted | ||
+ | \\ | ||
Check status of NTP service, Restart it | Check status of NTP service, Restart it | ||
<code bash> | <code bash> | ||
Line 54: | Line 72: | ||
</ | </ | ||
+ | \\ | ||
View NTP sources | View NTP sources | ||
<code bash> | <code bash> |