在bash 下 ,使用export修改PATH,但重启后丢失 $export PATH =/ usr / local / arm:$PATH 修改/etc/profile文件,加入环境变量,重启后生效 注:修改此文件需要获得root权限 $vim / etc / profile