1:配置server.xml:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/home/vfomp/apache-tomcat-8.5.24/webapps/jsfund" debug="0" reloadable="true" />
./startup.sh
先将war解压缩
然后
./shutdown.sh
然后替换
<Host name="localhost" appBase="jsfund"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/home/vfomp/apache-tomcat-8.5.24/webapps/jsfund" debug="0" reloadable="true" />
./startup.sh
最终访问
去掉了war包名可以