自启动?
好像可以做成服务吧

解决方案 »

  1.   

    假如你的Resin目录是:c:\resin,在命令行执行如下命令:c:\resin\bin\httpd -install,这样就可以将resin安装为windows的系统服务,将resin从系统服务中删除的命令为:c:\resin\bin\httpd -remove,这样你就可以在命令行方式下直接执行如下命令来启动resin服务:net start resin,停止resin服务为:net stop resin。在[管理工具]-[服务]中找到resin服务,设置成自动/手动,设置为自动方式时,在win2000下就可以自动启动了。或者写一个批处理文件startresin.bat,内容为:
    @echo
    echo ============================
    net start "Resin Web Server"
    rem 或者为:net start resin
    start http://localhost:8080
    echo ============================
    这样就可以直接执行这个批处理文件来启动Resin了。
    同理:stopresin.bat
    @echo
    echo ============================
    net stop resin
    echo ============================
    执行这个批处理文件来停止Resin。
    OK?