1. First install JDK
apt-get install openjdk-8-jdk
2. Download and decompress Tomcat
3. Upload the War package to the specified directory
4. Unzip the war package
5. Enter the conf directory under the tomcat directory to modify server.xml
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path ="/ssm" docBase ="/home/publishspace/publishsourcefile/webapp/ssm" debug="0" reloadbale ="true" ></Context>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
6. Start tomcat and enter the tomcat bin directory./startup.sh