.profile 与 .bash_profile
所属分类 linux
浏览量 1341
.profile works with sh or bash. However .bash_profile is bash-specific and will override .profile if present.
I believe mac OS X environment checks .bash_profile, .bash_login, .profile in this order.
It will run whichever is the highest in the hierarchy,
so, if you have .bash_profile, it will not check .profile.
优先级
.bash_profile > .bash_login > .profile
/etc/profile 全局配置脚本
MAC 配置 JAVA_HOME
vi .bash_profile
export JAVA_HOME=xxx
source .bash_profile
echo $JAVA_HOME
java -verbose
显示具体的jdk路径
.zsh_profile
export MVN_HOME=/Users/dugang/soft/mvn3
export PATH=$PATH:$MVN_HOME/bin/
source .zsh_profile
没有 .bash_profile 和 .zsh_profile 则手工创建
上一篇
下一篇
红黑树要点整理
BeanFactory和ApplicationContext的区别
jvm在线诊断工具greys
spring5配置属性读取机制
spring5模块介绍
spring aop 与 aspectj的区别和联系