This one is a bit easy because it just requires installing a service package onto the app servers.
The tricky part is that the required package changes everytime I restart the lab.
I had three attempts on this lab because I wanted to redo the lab in the shortest possible time.
Each time I redo the lab, i get different packages.
The first one was NSCD, then POSTFIX, then finally HTTPD which is the one I'm most familiar of.
So, below are the commands I used for this lab.
To log in to the three app servers:
sshpass -p '' ssh -o StrictHostKeyChecking=no tony@172.16.238.10 sshpass -p '' ssh -o StrictHostKeyChecking=no steve@172.16.238.11 sshpass -p '' ssh -o StrictHostKeyChecking=no banner@172.16.238.12 sshpass -p '' ssh -o StrictHostKeyChecking=no peter@172.16.239.10
To install httpd and make sure that it'll be enable upon bootup:
sudo yum install -y httpd sudo systemctl enable httpd sudo systemctl start httpd sudo systemctl status httpd systemctl list-unit-files | grep httpd # this may be optional but is also useful
############################################################################################################
####### ### ### ####### ####### ######### ####### ####### ### ###
#### ### ### #### #### #### #### ######### #### #### #### #### ###
### ### ### ### ### ### ### ### ### ### ### ### ###
### ### ### ### ### ### ### ###
####### ### ### ### ### ######## ####### ####### ### ### ####### ### ### ### ### ######## ####### ####### ### ###
### ### ### ### ### ### ### ###
### ### ### ### ### ### ### ### ### ### ###
######### ######### #### #### #### #### ######### ######### ######### ### ### ####### ####### ####### ####### ######### ####### ####### ### ###
############################################################################################################