resin服务器配置

来源:互联网 发布:编程今有雉兔同笼 编辑:程序博客网 时间:2024/06/05 17:01

  1、首先下载resin服务器,在resin.conf的配置文件中修改2处:

<!--
     - For production sites, change dependency-check-interval to something
     - like 600s, so it only checks for updates every 10 minutes.
    -->
  <dependency-check-interval>600s</dependency-check-interval>

<web-app id="/" root-directory="D:/java/project/eclipse3.4/neweb/WebContent"/>:项目的目录

其中还可以修改端口 <http address="*" port="8080"/>默认是8080;

2、去掉eclipse的所以的过滤可以看见.classpath文件在里面修改:

 <!-- Tomcat -->
 <classpathentry kind="output" path="build/classes"/>
 <!-- Resin  -->
 <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>

3、最后启动服务器例如:http://localhost:8080