linux 下 jps 报 command not found

所以说一般输入jps后报-bash: jps: command not found都是使用Linux自带的jdk时,下面以RedHat6.6(Centos也适用)的解决方法为例:

[root@hui-003 ~]# yum list | grep jdk-devel
java-1.6.0-openjdk-devel.x86_64        1:1.6.0.0-11.1.13.4.el6       rhel-source
java-1.7.0-openjdk-devel.x86_64        1:1.7.0.65-2.5.1.2.el6_5      rhel-source
java-1.8.0-openjdk-devel.x86_64        1.8.0.20-3.b26.el6            rhel-source
[root@hui-003 ~]# java -version
java version "1.8.0"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
(查看了一下我jdk版本是jdk1.8,安装:java-1.8.0-openjdk-devel.x86_64)
[root@hui-003 ~]# yum -y install java-1.8.0-openjdk-devel.x86_6

你可能感兴趣的:(linux 下 jps 报 command not found)