Install and Configure Tomcat Server Kodekloud

 

Question: 


Solution: 

Copy war file from jump host to desired server mentioned in the question

scp /tmp/ROOT.war tony@stapp01:/tmp

Login to mentioned server as a root

ssh tony@stapp01

sudo su

Install tomcat server

sudo yum install tomcat

Then copy war file to tomcat server

cp /tmp/ROOT.war /usr/share/tomcat/webapps

Open the config file of tomcat server and replace the port by mentioned port

vi /usr/share/tomcat/conf/server.xml

 <Connector port="6400" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

Save it and restart server

sudo systemctl start tomcat

sudo systemctl status tomcat

sudo systemctl enable tomcat


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

0 comments:

Post a Comment