php -v和phpinfo() 输出的php版本不一致

怀疑是系统变量捣的鬼 执行下面果然成功

vim /etc/profile
#在里面添加
export PATH="/usr/local/php/bin:$PATH"
#退出保存
source /etc/profile

即可解决

猜你喜欢

转载自blog.csdn.net/weixin_37178320/article/details/107211034