简体   繁体   中英

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

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? 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 :

  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) 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM