简体   繁体   English

我可以简单地将war文件解压缩并复制到我的服务器目录中吗?

[英]Can I simply unzip war file and copy it in my server directory?

This may be a simple question. 这可能是一个简单的问题。 I have a simple app which I am deploying using winstone as a web server 我有一个简单的应用程序,正在使用winstone作为Web服务器进行部署

java -jar winstone-0.9.10.jar --httpPort=8081 --warfile=mywarFile.war

Could I simply unzip the files in the war file and manually copy them in my server directory structure? 我可以简单地将文件解压缩到war文件中,然后手动将其复制到服务器目录结构中吗? Doing that is not working, why? 这样做不起作用,为什么呢? What else do I need to do? 我还需要做什么?

Thank you in advance for any help. 预先感谢您的任何帮助。

From the Winstone page, http://winstone.sourceforge.net : 在Winstone页面上, http ://winstone.sourceforge.net:

  java -jar target/winstone-0.9.10.jar --webroot=<location of webroot> (+ other options)

- OR -
  java -jar target/winstone-0.9.10.jar --warfile=<location of warfile> (+ other options)

- OR -
  java -jar target/winstone-0.9.10.jar --webappsDir=<location of webapps directory> (+ other options)

- OR -
  java -jar target/winstone-0.9.10.jar --hostsDir=<location of hosts directory> (+ other options) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从WAR中的classes目录中读取文件? - How can I read file from classes directory in my WAR? 无法解压缩Tomcat 6服务器中的WAR文件 - Unable to unzip the WAR file inside Tomcat 6 server 我可以在nginx服务器上部署.war吗? - Can i deploy my .war on an nginx server 为什么我不能将此ROOT.war文件部署到远程Tomcat服务器中? 当我重新启动Tomcat时,它将创建一个“空”的ROOT目录 - Why I can't deploy this ROOT.war file into my remote Tomcat server? When I restart Tomcat it creates an “empty” ROOT directory 我可以手动解压缩.war文件,然后运行具有嵌入式码头的应用程序吗? - Can I manually unzip a .war file, and then run the app that has embedded jetty? Jetty不会将我的WAR文件提取到temp目录中。 如何阻止其提取或确保将其提取到temp目录? - Jetty is not extracting my WAR file into temp directory. How can I stop it from extracting or make sure it extracts to the temp directory? 我在哪里可以找到Jasper Report Server 4.5.0 War文件? - Where can i find, jasper report server 4.5.0 war file? 如何在 NetBeans 中创建我的项目的 war 文件? - How can I create a war file of my project in NetBeans? maven将特定的依赖jar复制到.war文件中的特定目录 - maven copy a particular dependency jar to a specific directory in the .war file 如何在命令行中解压缩WAR文件 - How to unzip a WAR file in command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM