方法一

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

  这种方法的PATH 在终端关闭 后就会消失。所以还是建议通过编辑/etc/profile来改PATH

方法二

  # vim /etc/profile
  在文档最后,添加:
  export PATH="/usr/local/bin:$PATH"
  保存,退出,然后运行:
  #source /etc/profile

  不报错则成功。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-09-02
  • 2022-02-09
  • 2022-02-03
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案