1 vi ~/.bashrc/ 在最后加上 export PATH=路径/bin:$PATH 2 echo 'export PATH=路径/bin:$PATH' >> ~/.bashrc source ~/.bashrc/