Linux环境中,将war包进行解压
运行小栗子
命令: jar -xvf aa.war
[root@hidata3 warm]# ll
-rw-r--r-- 1 root root 19705197 Feb 16 14:18 aa.war
[root@hidata3 warm]# jar -xvf aa.war
[root@hidata3 warm]# ll
total 19252
-rw-r--r-- 1 root root 19705197 Feb 16 14:18 aa.war
drwxr-xr-x 3 root root 4096 Sep 17 2020 META-INF
drwxr-xr-x 4 root root 4096 Sep 17 2020 WEB-INF
Linux环境中,将当前文件夹下所有内容打成war包文章来源:https://www.toymoban.com/news/detail-503634.html
命令: jar -cvfM0 hello.war ./
运行小栗子文章来源地址https://www.toymoban.com/news/detail-503634.html
[root@hidata3 warm]# ll
total 8
drwxr-xr-x 3 root root 4096 Sep 17 2020 META-INF
drwxr-xr-x 4 root root 4096 Sep 17 2020 WEB-INF
[root@hidata3 warm]# jar -cvfM0 aa.war ./
adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/web.xml(in = 1947) (out= 1947)(stored 0%)
......
[root@hidata3 warm]# clear
[root@hidata3 warm]# ll
total 19252
-rw-r--r-- 1 root root 19705197 Feb 16 14:25 aa.war
drwxr-xr-x 3 root root 4096 Sep 17 2020 META-INF
drwxr-xr-x 4 root root 4096 Sep 17 2020 WEB-INF
到了这里,关于Linux环境中war包解压与打包的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!