簡體   English   中英

我可以簡單地將war文件解壓縮並復制到我的服務器目錄中嗎?

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

這可能是一個簡單的問題。 我有一個簡單的應用程序,正在使用winstone作為Web服務器進行部署

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

我可以簡單地將文件解壓縮到war文件中,然后手動將其復制到服務器目錄結構中嗎? 這樣做不起作用,為什么呢? 我還需要做什么?

預先感謝您的任何幫助。

在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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM