[root@localhost ~]# yum -y install jstack
(1/2): epel/x86_64/primary_db | 6.8 MB 00:00:16
(2/2): epel/x86_64/updateinfo | 998 kB 00:00:47
watch cat /proc/net/dev没有可用软件包 jstack。
  • 解决方案
[root@localhost ~]# yum whatprovides */jstack
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* c7-media:
* epel: mirrors.njupt.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
epel/x86_64/filelists_db | 12 MB 00:00:01
extras/7/x86_64/filelists_db | 246 kB 00:00:00
updates/7/x86_64/filelists_db | 5.2 MB 00:00:00
1:java-1.6.0-openjdk-devel-1.6.0.41-1.13.13.1.el7_3.x86_64 : OpenJDK Development Environment
源 :base
匹配来源:
文件名 :/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/bin/jstack 1:java-1.6.0-openjdk-devel-1.6.0.41-1.13.13.1.el7_3.x86_64 : OpenJDK Development Environment
源 :c7-media
匹配来源:
文件名 :/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/bin/jstack 1:java-1.7.0-openjdk-devel-1.7.0.171-2.6.13.2.el7.x86_64 : OpenJDK Development Environment
源 :c7-media
匹配来源:
文件名 :/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.171-2.6.13.2.el7.x86_64/bin/jstack 1:java-1.7.0-openjdk-devel-1.7.0.191-2.6.15.5.el7.x86_64 : OpenJDK Development Environment
源 :base
匹配来源:
文件名 :/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.191-2.6.15.5.el7.x86_64/bin/jstack 1:java-1.7.0-openjdk-devel-1.7.0.201-2.6.16.1.el7_6.x86_64 : OpenJDK Development Environment
源 :updates
匹配来源:
文件名 :/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.201-2.6.16.1.el7_6.x86_64/bin/jstack 1:java-1.7.0-openjdk-devel-1.7.0.211-2.6.17.1.el7_6.x86_64 : OpenJDK Development Environment
源 :updates
匹配来源:
文件名 :/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211-2.6.17.1.el7_6.x86_64/bin/jstack 1:java-1.7.0-openjdk-devel-1.7.0.221-2.6.18.0.el7_6.x86_64 : OpenJDK Development Environment
源 :updates
匹配来源:
文件名 :/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.221-2.6.18.0.el7_6.x86_64/bin/jstack

使用这个命令会有好多软件包都有这个命令,这里你选择一个合适的包使用yum安装上就好了

比如,我使用的是

[root@localhost ~]# yum -y install java-latest-openjdk-devel-debug-12.0.2.9-1.rolling.el7.x86_64

搞定

05-11 20:54