1.教学视频链接:https://www.bilibili.com/video/BV1Ui4y1S7vv
Tomcat8.5获取链接:
链接:https://pan.baidu.com/s/18XqIcrehbdcs_s9lCG_xrA
提取码:s10l
附上一些配置文件的代码:
①web.xml代码:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1" metadata-complete="true">
<display-name>Router for Tomcat</display-name>
<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>
</web-app>
②/etc/profile中增加如下代码:
export CATALINA_BASE2=/usr/vue-project/home/apache-tomcat-8.5.76
export CATALINA_HOME2=/usr/vue-project/home/apache-tomcat-8.5.76
export TOMCAT_HOME2=/usr/vue-project/home/apache-tomcat-8.5.76
export CATALINA_BASE1=/usr/vue-project/admin/apache-tomcat-8.5.76
export CATALINA_HOME1=/usr/vue-project/admin/apache-tomcat-8.5.76
export TOMCAT_HOME1=/usr/vue-project/admin/apache-tomcat-8.5.76
③catalina.sh中增加如下代码:
export CATALINA_BASE=$CATALINA_BASE2
export CATALINA_HOME=$CATALINA_HOME2
export TOMCAT_HOME=$TOMCAT_HOME2
export CATALINA_BASE=$CATALINA_BASE1
export CATALINA_HOME=$CATALINA_HOME1
export TOMCAT_HOME=$TOMCAT_HOME1