vi /etc/profile
文件最后输入export PATH=$PATH:/usr/abc/def/
保存
输入source /etc/profile刷新刚刚修改过的环境变量文件
vi /etc/profile
文件最后输入export PATH=$PATH:/usr/abc/def/
保存
输入source /etc/profile刷新刚刚修改过的环境变量文件
转载于:https://www.cnblogs.com/tiandsp/p/9294713.html