/usr/local/bin路径不存环境变量中

  • /usr/local/bin is not included in the PATH environment

  • 解决方案

vi ~/.bashrc

export PATH="/usr/local/bin:/usr/bin:/bin"

source ~/.bashrc

或者

echo 'export PATH="/usr/local/bin:/usr/bin:/bin"' >> ~/.bashrc
source ~/.bashrc