用于提取war文件的linux命令

时间:2021-06-23 13:29:22

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

如何使用linux命令提示符提取.war文件?

5 个解决方案

#1


111  

Using unzip

使用解压缩

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

Using jar

使用jar

jar xvf test.war

#2


27  

Or

jar xvf myproject.war

jar xvf myproject.war

#3


7  

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

war文件只是一个具有特定目录结构的zip文件。因此您可以使用unzip或jar工具来解压缩。

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.

但你可能不想这么做。如果将war文件添加到Tomcat的webapps目录中,Tomcat将负责提取/安装war文件。

#4


2  

You can use the unzip command.

可以使用unzip命令。

#5


0  

Best and easy way to unzip a war is by using jar.

最好的和最容易的方法解压缩战争是通过使用jar。

Example - jar xvf test.war

示例- jar xvf test.war

#1


111  

Using unzip

使用解压缩

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

Using jar

使用jar

jar xvf test.war

#2


27  

Or

jar xvf myproject.war

jar xvf myproject.war

#3


7  

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

war文件只是一个具有特定目录结构的zip文件。因此您可以使用unzip或jar工具来解压缩。

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.

但你可能不想这么做。如果将war文件添加到Tomcat的webapps目录中,Tomcat将负责提取/安装war文件。

#4


2  

You can use the unzip command.

可以使用unzip命令。

#5


0  

Best and easy way to unzip a war is by using jar.

最好的和最容易的方法解压缩战争是通过使用jar。

Example - jar xvf test.war

示例- jar xvf test.war