Linux错误 jps命令无法找到

jps命令无法找到解决方法

[ ~]# jps
bash: jps: 无法找到jps命令
[ ~]# find / -name jps
find: ‘/run/user/1001/gvfs’: Permission denied
[ ~]# rpm -qa |grep -i jdk
java-1.8.0-openjdk-headless-1.8.0.65-3.b17.el7.x86_64
java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64
java-1.7.0-openjdk-1.7.0.91-2.6.2.3.el7.x86_64
java-1.7.0-openjdk-headless-1.7.0.91-2.6.2.3.el7.x86_64

[ ~]# yum list *openjdk-devel*

需要安装openjdk-devel包
[ ~]# yum install java-1.8.0-openjdk-devel.x86_64
[ ~]# which jps
/usr/bin/jps

[ ~]# jps
12995 Jps
10985 ResourceManager
11179 NodeManager
10061 NameNode
10301 DataNode
10655 SecondaryNameNode

来源https://www.cnblogs.com/yjm0330/p/10174170.html

相关推荐