网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

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://bjjierui.cn/article/gdcsh.html

其他资讯