再设置java 或者其他环境变量的时候,网上建议大多设置profile但是查看centos6.5的profile 文件我发现专家是有建议的就是这个 原文
cat profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
记下来 避免以后再忘记