Linux 环境变量的配置解决(-bash: jps: command not found)问题

Linux 环境变量的配置解决(-bash: jps: command not found)问题


1. 找到文件 .bash_profile
find / -n .bash_profile


2. 编辑文件把jdk安装的bin目录放到最下面




Linux 环境变量的配置解决(-bash: jps: command not found)问题

3.
source /root/.bash_profile


发现 jps 等命令运行正常了

你可能感兴趣的:(command)