CentOS: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
Synchronize with NTP server
Check date & time and NTP status
Line 18: Line 18:
| style="width: 50%;" | Synchronize with NTP server
| style="width: 50%;" | Synchronize with NTP server
| style="width: 50%;" | <div class="cli">$ systemctl stop ntpd<br>$ ntpdate pool.ntp.org<br>$ systemctl start ntpd</div>
| style="width: 50%;" | <div class="cli">$ systemctl stop ntpd<br>$ ntpdate pool.ntp.org<br>$ systemctl start ntpd</div>
|-
| style="width: 50%;" | Check date & time and NTP status
| style="width: 50%;" | <div class="cli">$ timedatectl</div>
|}
|}

Revision as of 19:50, 2 April 2018

RHEL 7 Documentation

Description Command
Install byobu
$ yum -y install epel-release
$ yum -y install byobu
Enable byobu
$ byobu-enable
Enable NTP
$ yum install -y ntp
$ systemctl enable ntpd
$ systemctl start ntpd
Synchronize with NTP server
$ systemctl stop ntpd
$ ntpdate pool.ntp.org
$ systemctl start ntpd
Check date & time and NTP status
$ timedatectl