1.进入~/.bashrc 文件 vim ~/.bashrc 2.按下I键,然后按Enter键 加入路径 3.按ESC键退出,再按:wq! 保存即可。 转载于:https://www.cnblogs.com/happystudyeveryday/p/10671606.html