CentOS: Difference between revisions
add systemctl start ntpd |
Synchronize with NTP server |
||
Line 15: | Line 15: | ||
| 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%;" | <div class="cli">$ yum install -y ntp<br>$ systemctl enable ntpd<br>$ systemctl start ntpd</div> | ||
|- | |||
| 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> | |||
|} | |} |
Revision as of 19:47, 2 April 2018
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 |