vim /etc/profile 最后插入: PATH=$PATH:/usr/local/php/bin:/usr/local/apache/bin export PATH 执行文件: . /etc/profile