Linux command for extracting war file?

自闭症网瘾萝莉.ら 提交于 2019-11-28 17:16:54

问题


How can I extract a .war file with Linux command prompt?


回答1:


Using unzip

unzip -c whatever.war META-INF/MANIFEST.MF  

It will print the output in terminal.

And for extracting all the files,

 unzip whatever.war

Using jar

jar xvf test.war



回答2:


Or

jar xvf myproject.war




回答3:


A war file is just a zip file with a specific directory structure. So you can use unzip or the jar tool for unzipping.

But you probably don't want to do that. If you add the war file into the webapps directory of Tomcat the Tomcat will take care of extracting/installing the war file.




回答4:


You can use the unzip command.



来源:https://stackoverflow.com/questions/3833578/linux-command-for-extracting-war-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!