解决办法:
执行命令:PATH=$PATH:/bin
找不到命令vim ~/.bash_profile
添加java/bin路径
生成环境变量:source ~/.bash_profile
jps查询端口成功