[英]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.