RHEL 7 supports Docker containers, systemd, Microsoft-compatible ID management, and XFS for 500TB filesystems
RHEL 7 now uses the xfs file system instead of ext4 by default
kernel code name – Maipo
[root@ovi ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
kernel version
[root@ovi ~]# uname -r
3.10.0-229.el7.x86_64
For RHEL 7, the systemctl command replaces service and chkconfig
#systemctl -t service –state=active
Check if service is enabled
systemctl is-enabled httpd
#systemctl is-enabled httpd
enabled
View run level
[root@ovi ~]# systemctl get-default
multi-user.target
or
[root@ovi ~]# who -r
run-level 3 2015-12-10 03:47
Change the hostname:
#hostnamectl set-hostname hostname
#hostnamectl set-hostname ovi
Configure network interface
/etc/sysconfig/network-scripts/ifcfg-*
nmcli
nmcli – command‐line tool for controlling NetworkManager
nmcli con [add|mod|edit]
nmtui
nmtui – Text User Interface for controlling NetworkManager
nm-connection-editor
View network interface info
ip addr
nmcli dev show
teamdctl
teamdctl — team daemon control tool
brctl
bridge
#bridge
Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }
where OBJECT := { link | fdb | mdb | vlan | monitor }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |
-o[neline] | -t[imestamp]
Install apache on Red Hat 7
# yum install httpd -y
# systemctl start httpd.service
to verify if httpd service is running use below command:
# systemctl is-active httpd.service
active
Displaying service status
MariaDB is the default implementation of MySQL in Red Hat Enterprise Linux 7
Install mariadb
yum install mariadb mariadb-server -y
mysql -V
mysql Ver 15.1 Distrib 5.5.44-MariaDB, for Linux (x86_64) using readline 5.
# systemctl enable mariadb.service
ln -s ‘/usr/lib/systemd/system/mariadb.service’ ‘/etc/systemd/system/multi-user.target.wants/mariadb.service’
check if mariadb service is enable
systemctl is-enabled mariadb
enabled
# systemctl start mariadb.service
to verify if service is running
#systemctl is-active mariadb.service
active
Start the MongoDB service and configure it to start when the system boots:
# systemctl enable mongod.service
# systemctl start mongod.service


