1.首先找到目录 image.png 2.vim ~/.bashrc 在后面加入 export PATH="$PATH:/phpstudy/server/php/bin" 3.再断开连接,重新连接服务器 可以通过echo $PATH进行验证