-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathtime-service
43 lines (22 loc) · 1.05 KB
/
time-service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
1. Login to the lab server and determine which timezone should be used based on your location.
[root@localhost]# tzselect
or
[root@localhost]# timedatectl list-timezones
2. Update the system's timezone to reflect the selected timezone.
[root@localhost]# timedatectl set-timezone American/Chicago
3. Update the systemtime to match your current local time.
[root@localhost]# timedatectl set-time 02:00:00
4. Display current time and date information.
[root@localhost]# timedatectl
5. Update the NTP time services to be 0.pool.ntp.org, 1.pool.ntp2.org, 2.pool.ntp.org, and 3.pool.ntp.org.
[root@localhost]# vim /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst
6. Apply the changes to the chronyd service.
[root@localhost]# systemctl restart chronyd
7. Verify the new time servers are properly working with chronyd.
[root@localchost] chronyc sources -v