Install and Configure Web Application Kodekloud

 


Solution:

Login to every appserver by ssh

ssh [email protected]

ssh [email protected]

ssh [email protected] 

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 [email protected]:/tmp
scp -r /home/thor/apps [email protected]:/tmp

scp -r /home/thor/news [email protected]:/tmp
scp -r /home/thor/apps [email protected]:/tmp

scp -r /home/thor/news [email protected]:/tmp
scp -r /home/thor/apps [email protected]:/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/

 


 

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

0 comments:

Post a Comment