怀疑是系统变量捣的鬼 执行下面果然成功
vim /etc/profile #在里面添加 export PATH="/usr/local/php/bin:$PATH" #退出保存 source /etc/profile
即可解决