ubuntu添加环境变量 sudo进入root vim /etc/profile 末尾加: export PATH=/your··/bin:$PATH:wq!保存退出source /etc/profile即可