1.输入nano ~/.bashrc
2.添加 export PATH=/安装地址(如/home/ubuntu/..):$PATH
3.在终端运行 source ~/.bashrc
4.输入echo $PATH查看