Deploy War package on linux ubuntu tomcat 8.0

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



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326269721&siteId=291194637