Linux -bash: jps: command not found

问题描述:
Linux系统,执行命令时提示“ -bash: jps: command not found”

解决办法:
1、安装jdk;
2、/etc/profile下配置环境变量:

vim /etc/profile

添加如下内容:
JAVA_HOME=/usr/jdk    #jdk安装路径
CLASSPATH=$JAVA_HOME/lib/
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH

3、上述步骤还没解决的话,安装 java-1.8.0-openjdk-devel.x86_64:

yum install java-1.8.0-openjdk-devel.x86_64

你可能感兴趣的:(杂七杂八的报错,Linux,linux)