CentOS

From Han Wiki
Revision as of 22:53, 2 April 2018 by Mhan (talk | contribs) (→‎SELinux: Analyze the audit log used by SELinux)

Jump to navigation Jump to search

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
Analyze the audit log used by SELinux
$ sealert -a /var/log/audit/audit.log