Install and Configure Web Application Kodekloud

 


Solution:

Login to every appserver by ssh

ssh tony@stapp01

ssh steve@stapp02

ssh banner@stapp03 

Then login as root

sudo su

Install httpd and openssh in all appservers

yum install httpd -y

yum install openssh-clients

systemctl restart sshd

Copy mentioned folders in the question  to every appserver from jump host

scp -r /home/thor/news tony@stapp01:/tmp
scp -r /home/thor/apps tony@stapp01:/tmp

scp -r /home/thor/news steve@stapp02:/tmp
scp -r /home/thor/apps steve@stapp02:/tmp

scp -r /home/thor/news banner@stapp03:/tmp
scp -r /home/thor/apps banner@stapp03:/tmp

Then from any appserver move the folders to server html folder

mv /tmp/news /var/www/html
mv /tmp/apps /var/www/html

Next change Listen port to 8080 and restart httpd in all appservers

vi /etc/httpd/conf/httpd.conf

systemctl start httpd
systemctl enable httpd

Check from jump host

curl http://stapp01:8080/news/

curl http://stapp01:8080/apps/

curl http://stapp02:8080/news/

curl http://stapp02:8080/apps/

curl http://stapp03:8080/news/

curl http://stapp03:8080/apps/

 


 

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

1 comments:

  1. Joomla has proved popular with web designers and web developers. Joomla offers designers and web developers with distinct advantages over competitors and allows them to provide customers with a powerful web presence in a cost effective manner. Multilingual Web Design Services

    ReplyDelete