-bash: jps: command not found

解决方法:需要安装java-1.X.X-openjdk-devel这个包,他提供了jps这个工具。

(1)查找可用的包

[root@nimbus usr]# yum list |grep jdk-devel 
java-1.6.0-openjdk-devel.x86_64           1:1.6.0.41-1.13.13.1.el7_3   base     
java-1.7.0-openjdk-devel.x86_64           1:1.7.0.181-2.6.14.8.el7_5   updates  
java-1.8.0-openjdk-devel.i686             1:1.8.0.171-8.b10.el7_5      updates  
java-1.8.0-openjdk-devel.x86_64           1:1.8.0.171-8.b10.el7_5      updates  
java-1.8.0-openjdk-devel-debug.i686       1:1.8.0.171-8.b10.el7_5      updates  
java-1.8.0-openjdk-devel-debug.x86_64     1:1.8.0.171-8.b10.el7_5      updates  

(2)安装java-1.8.0-openjdk-devel.x86_64

[root@nimbus usr]# yum install java-1.8.0-openjdk-devel.x86_64

(3)验证

[root@supervisor2 zookeeper]# jps
13121 logviewer
16689 Jps
16205 QuorumPeerMain

你可能感兴趣的:(系统配置)