首先删除PHP默认版本 rm -f /usr/bin/php 将默认版本改成71 ln -sf /www/server/php/71/bin/php /usr/bin/php 红字所表示的为你想更换php版本