-bash: jps: command not found
程序员文章站
2022-04-18 14:33:04
...
解决方法:需要安装java-1.X.X-openjdk-devel这个包,他提供了jps这个工具。
(1)查找可用的包
[[email protected] 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
[[email protected] usr]# yum install java-1.8.0-openjdk-devel.x86_64
(3)验证
[[email protected] zookeeper]# jps
13121 logviewer
16689 Jps
16205 QuorumPeerMain
推荐阅读
-
bash scp command not found的解决方法
-
ubuntu下安装vue/cli提示No command 'vue' found
-
linux 执行 javac 报错 javac: command not found
-
解决 bash: vue command not found
-
sudo service: command not found 报错的解决方法
-
linux下提示bash:command not found
-
-bash: mysqladmin: command not found问题解决
-
覆盖原先的PATH导致命令失效提示command not found的解决方法
-
mysql: command not found
-
python 错误信息是:sudo :apt-get:command not found