出现的原因是没有配置Linux系统的环境变量导致

vim /etc/profile - 编辑环境变量
在最后一行添加你的PHP的bin安装目录
export PATH=$PATH:PHP安装目录/php/bin
重新加载profile文件,立即生效
source /etc/profile - 环境变量生效

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2021-07-22
  • 2022-03-01
  • 2021-08-11
  • 2021-10-11
  • 2021-05-15
  • 2021-07-09
猜你喜欢
  • 2021-09-05
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-08-19
  • 2021-08-27
相关资源
相似解决方案