-bash: jps: 未找到命令

网友投稿 681 2022-11-04

-bash: jps: 未找到命令

-bash: jps: 未找到命令

执行 java -version 发现有jdk 执行 rpm -qa |grep -i jdk 命令查询已经安装的包, 发现有jdk 需要安装openjdk-devel包 执行:

yum list *openjdk-devel* yum install java-1.8.0-openjdk-devel.x86_64

执行 which jps 命令,发现已经有了,

最后执行 jsp 命令发现已经好使了

[root@zjj101 logs]# java -versionopenjdk version "1.8.0_302"OpenJDK Runtime Environment (build 1.8.0_302-b08)OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)[root@zjj101 logs]# rpm -qa |grep -i jdkjava-1.8.0-openjdk-headless-1.8.0.302.b08-0.el7_9.x86_64java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64copy-jdk-configs-3.3-10.el7_5.noarch[root@zjj101 logs]# yum list *openjdk-devel*已加载插件:fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.neusoft.edu- * extras: mirrors.neusoft.edu- * updates: mirrors.ustc.edu-可安装的软件包java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 basejava-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.2.el7_8 basejava-1.8.0-openjdk-devel.i686 1:1.8.0.302.b08-0.el7_9 updatesjava-1.8.0-openjdk-devel.x86_64 1:1.8.0.302.b08-0.el7_9 updatesjava-11-openjdk-devel.i686 1:11.0.12.0.7-0.el7_9 updatesjava-11-openjdk-devel.x86_64 1:11.0.12.0.7-0.el7_9 updates [root@zjj101 logs]# yum install java-1.8.0-openjdk-devel.x86_64已加载插件:fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.neusoft.edu- * extras: mirrors.neusoft.edu- * updates: mirrors.ustc.edu-base | 3.6 kB 00:00docker-ce-stable | 3.5 kB 00:00extras | 2.9 kB 00:00mysql-connectors-community | 2.6 kB 00:00mysql-tools-community | 2.6 kB 00:00mysql57-community | 2.6 kB 00:00updates | 2.9 kB 00:00正在解决依赖关系--> 正在检查事务---> 软件包 java-1.8.0-openjdk-devel.x86_64.1.1.8.0.302.b08-0.el7_9 将被 安装--> 解决依赖关系完成依赖关系解决============================================================================ Package 架构 版本 源 大小============================================================================正在安装: java-1.8.0-openjdk-devel x86_64 1:1.8.0.302.b08-0.el7_9 updates 9.8 M事务概要============================================================================安装 1 软件包总-量:9.8 M安装大小:40 MIs this ok [y/d/N]: yDownloading packages:java-1.8.0-openjdk-devel-1.8.0.302.b08-0.el7_9.x86_64. | 9.8 MB 00:06Running transaction checkRunning transaction testTransaction test succeededRunning transaction 正在安装 : 1:java-1.8.0-openjdk-devel-1.8.0.302.b08-0.el7_9.x86_ 1/1 验证中 : 1:java-1.8.0-openjdk-devel-1.8.0.302.b08-0.el7_9.x86_ 1/1已安装: java-1.8.0-openjdk-devel.x86_64 1:1.8.0.302.b08-0.el7_9完毕![root@zjj101 logs]# which jps/usr/bin/jps[root@zjj101 logs]# jps11271 Bootstrap13035 Jps[root@zjj101 logs]#

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:利用vux+ nodejs做了个小demo
下一篇:RocketMQ启动停止 NameServer和Broker
相关文章

 发表评论

暂时没有评论,来抢沙发吧~