Answers 100% Solved
Extend swap space to 3GiB Correct Ans-1. # lsblk - check the swap space (assume our system
has 2GB of swap space)
2. # fdisk /dev/diskname
3. n
4. p
5. Enter
6. Enter
7. +1G (last sector)
8. t
9. Enter
10. 82 - Linux swap
11. p
12. w
13. # partprobe /dev/diskname
14. # lsblk /dev/newpartname
15. # mkswap /dev/newpartname
16. copy the UUID output
17. # vim /etc/fstab
18. UUID=... swap swap defaults 0 0
, 19. # swapon /dev/newpartname
20. # free -m - to verify
21. # reboot
22. # free -m - to verify
enable persistent packet forwarding Correct Ans-1. vim /etc/sysctl.conf
net.ipv4.ip_forward=1
2. sysctl -p
boot into multiuser target by default and boot messages are persistent Correct Ans-1.
systemctl get-default
2. systemctl set-default multi-user
3. cd /etc/default
4. vim grub
5. remove the "rhgb quiet" from the GRUB_CMDLINE_LINUX var
configure a basic webserver that displays "Welcome to the webserver" once connected to it.
ensure the firewalls allows the http/https services Correct Ans-1. dnf -y install httpd
2. dnf -y install firewalld
3. systemctl status firewalld
4. systemctl start firewalld
5. systemctl enable firewalld