linux设置永久环境变量

vi /etc/profile

文件最后输入export PATH=$PATH:/usr/abc/def/

保存

输入source /etc/profile刷新刚刚修改过的环境变量文件

转载于:https://www.cnblogs.com/tiandsp/p/9294713.html