查看下系统默认php命令关联的PHP版本 ls -l /usr/bin/php 要更改成php7.2的执行以下命令 ln -sf /www/server/php/72/bin/php /usr/bin/php