jetty部署war包-创新互联

与tomcat类似,直接拷贝war到webapps目录即可,不同的是解压文件不会存放到webapps下。

创新互联公司技术团队10年来致力于为客户提供做网站、网站制作、成都品牌网站建设营销型网站建设、搜索引擎SEO优化等服务。经过多年发展,公司拥有经验丰富的技术团队,先后服务、推广了上千网站,包括各类中小企业、企事单位、高校等机构单位。

需要做一些额外配置,才能找到正确解压目录

参考资料:http://dev.eclipse.org/mhonarc/lists/jetty-users/msg01998.html

Q: How to change the extracted directory?

A: You have few choices.

1) Specify your own java.io.tmpdir java system property location for jetty to use.

  $ java -Djava.io.tmpdir=/path/to/my/new/temp/ -jar start.jar

2) Create a "work" directory under the ${jetty.home} path (whereever that is).

  That will cause Jetty to use that work directory instead of whatever the java.io.tmpdir property is set to.

3) Specify the tempDir attribute on the WebAppProvider deployments.

  Only valid for war file deployment scenarios, NOT valid for context based deployment.

  If you have etc/jetty-webapps.xml in your start.ini you have war file deployments enabled.

  Edit the ${jetty.home}/etc/jetty-webapps.xml file and add 1 more attribute on the WebAppProvider.

  /path/to/my/preferred/temp/dir/for/all/webapps

4) Set the tempDirectory attribute on the WebAppContext with context based deployments.

  NOT valid for war file deployment scenarios.

  If you have etc/jetty-context.xml in your start.ini you have context based deployments enabled.

  Edit the ${jetty.home}/contexts/myapp.xml and add the tempDirectory attribute on the WebAppContext.

  /path/to/my/preferred/temp/dir/for/this/context

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站栏目:jetty部署war包-创新互联
链接URL:http://lszwz.com/article/gdcsh.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款