cd /opt/tomcat
bin/shutdown.sh
cd webapps/<directoryinwhichwe need to deploy>
rm -Rf *
jar xf <path to war file in the server>
cd ../..
bin/startup.sh
ex:
cd /opt/tomcat
bin/shutdown.sh
cd webapps/service
rm -Rf *
jar xf /home/sgidigi/xyz.war
cd ../..
bin/startup.sh
bin/shutdown.sh
cd webapps/<directoryinwhichwe need to deploy>
rm -Rf *
jar xf <path to war file in the server>
cd ../..
bin/startup.sh
ex:
cd /opt/tomcat
bin/shutdown.sh
cd webapps/service
rm -Rf *
jar xf /home/sgidigi/xyz.war
cd ../..
bin/startup.sh
What if my tomcat folder does not ahow webapps and log folders and hence shutdown.sh shows error?
ReplyDelete