CentOS: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
Check date & time and NTP status
add headers
Line 1: Line 1:


[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/?version=7 RHEL 7 Documentation]
[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/?version=7 RHEL 7 Documentation]
== NTP ==


{| class="wikitable"
{| class="wikitable"
Line 21: Line 23:
| 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%;" | <div class="cli">$ timedatectl</div>
|}
== SELinux ==
{| class="wikitable"
|-
! Description
! Command
|-
| style="width: 50%;" | Install SETools and SETroubleshoot
| style="width: 50%;" | <div class="cli">$ yum install setroubleshoot setools</div>
|}
|}

Revision as of 22:45, 2 April 2018

RHEL 7 Documentation

NTP

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

SELinux

Description Command
Install SETools and SETroubleshoot
$ yum install setroubleshoot setools