find / -n .bash_profile
3.让配置文件马上生效
source /root/.bash_profile
Linux 环境变量的配置解决(-bash: jps: command not found)问题
原文:http://blog.51cto.com/hqq0000/2177785