用eclipse开发运行调试jsp项目很方便,但是如何在不启动eclipse的情况下运行项目呢?


### 首先打开tomcat的`conf/server.xml`文件,找到`Host`标签,这里就是配置项目的地方。

appBase是默认项目的路径

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">

    <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -->
    <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    -->

    <!-- Access log processes all example.Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" -->
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
          prefix="localhost_access_log." suffix=".txt"
          pattern="%h %l %u %t &quot;%r&quot; %s %b" />

</Host>

### 不需要对上面的配置进行修改,只需要在`Host`标签内加入`Context`标签即可,如:
``` ```
其他的配置项还不明白什么意思,继续学习!

相关文章:

  • 2022-02-19
  • 2022-12-23
  • 2021-11-18
  • 2021-11-30
  • 2021-08-06
  • 2021-06-24
  • 2021-09-18
猜你喜欢
  • 2021-11-20
  • 2021-05-24
  • 2021-07-03
  • 2021-08-23
  • 2021-04-24
相关资源
相似解决方案