CentOS: Difference between revisions

Jump to navigation Jump to search
75 bytes removed ,  3 April 2018
Line 10: Line 10:
|-
|-
| style="width: 50%;" | Install byobu
| style="width: 50%;" | Install byobu
| style="width: 50%;" | <div class="cli">$ yum -y install epel-release<br>$ yum -y install byobu</div>
| style="width: 50%;" class="cli" | yum -y install epel-release<br>yum -y install byobu
|-
|-
| style="width: 50%;" | Enable byobu
| style="width: 50%;" | Enable byobu
| style="width: 50%;" | <div class="cli">$ byobu-enable</div>
| style="width: 50%;" class="cli" | byobu-enable
|-
|-
| style="width: 50%;" | Enable NTP
| style="width: 50%;" | Enable NTP
| style="width: 50%;" | <div class="cli">$ yum install -y ntp<br>$ systemctl enable ntpd<br>$ systemctl start ntpd</div>
| style="width: 50%;" class="cli" | yum install -y ntp<br>systemctl enable ntpd<br>systemctl start ntpd
|-
|-
| 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%;" class="cli" | systemctl stop ntpd<br>ntpdate pool.ntp.org<br>systemctl start ntpd
|-
|-
| style="width: 50%;" | Check date & time and NTP status
| style="width: 50%;" | Check date & time and NTP status
| style="width: 50%;" | <div class="cli">$ timedatectl</div>
| style="width: 50%;" class="cli" | timedatectl
|}
|}


Navigation menu