jps command not found

[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.7.0_65"  

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.7.0,于是就安装java-1.7.0-openjdk-devel.x86_64,后来经试验安装java-1.6.0-openjdk-devel.x86_64和java-1.8.0-openjdk-devel.x86_64后jps命令倒也能正常使用)  

[root@hui-003 ~]# yum -y install java-1.7.0-openjdk-devel.x86_64  

posted @ 2018-04-12 16:33  yye_2010  阅读(365)  评论(0编辑  收藏  举报