sudo vim /etc/profile PHP_HOME="/Applications/php-7.1.6" PATH=".:$PATH:$PHP_HOME" 转载于:https://www.cnblogs.com/xmxkkk/p/7339711.html