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
0 comments:
Post a Comment