timedatectl ---> management system time
set-time ---> set the current time
status ---> displays the current time information
set-timezone ---> set to the current time zoneset-local-rtc 0 | 1 ---> Sets whether to use utc time
list-timezone ---> View supports all time zones
.
chronyd ---> Time Synchronization Service
Server:
Vim /etc/chrony.conf
22 is the allow 172.25.254.0/24 ---> allowing those native client to synchronize time
29 local stratum 10 ---> when the unit is not synchronized into any host, native as a time sourceRestart Time Synchronization Service
Client:
vim /etc/chrony.conf
Server iBurst ## 172.25.254.200 172.25.254.131 host this machine immediately synchronized time
chronyc sources -v synchronization time
^ * foundation200.ilt.example indicate success set the synchronization time
linux system time to get started quickly
Guess you like
Origin blog.51cto.com/14190777/2422598
Recommended
Ranking