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

linux环境变量的设置

2016-01-26 11:03 405 查看
参考链接:
http://www.powerxing.com/linux-environment-variable/
全局的环境变量存放的文件有:
etc/profile,用户登陆一次,执行一次
etc/bashrc,每打开一次shell,执行一次

/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.
 

/etc/profile - This file gets executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well as by the DisplayManager when the desktop session loads.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: