您的位置:首页 > 运维架构 > Shell

profile和bash

2015-09-08 11:45 549 查看
24down votefavorite
12

I am reading about basic shell scripting from Linux Command Line and Shell Scripting Bible.

It says that the
/etc/profile
file sets the environment variables at startup of the Bash shell. The
/etc/profile.d
directory contains other scripts that contain application-specific startup files, which are also executed at startup time by the shell.

bash窗口里看JAVA_HOME设置好了,但是./xxx总说没设置,原来是这个原因,运维tmd设置了java_home但是只导出了path,一直以为bash窗口里echo能看到就是没问题,最后发现是这么回事儿。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: