Linux中Composer 在安装依赖包与本地php版本不符问题

看一下系统指向的文件
ls /usr/bin/php -al

找到对应版本的php文件
ls /home/work/study/soft/php/bin/php -al

删除老的软连接建立新的软连接
ln -s /home/work/study/soft/php/bin/php /usr/bin/php

原文地址:https://www.cnblogs.com/greycdoer0/p/10846569.html