Install and Configure Tomcat Server Kodekloud




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

scp /tmp/ROOT.war [email protected]:/tmp

Login to mentioned server as a root

ssh [email protected]

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"


               redirectPort="8443" />

Save it and restart server

sudo systemctl start tomcat

sudo systemctl status tomcat

sudo systemctl enable tomcat

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


Post a Comment