# 复制 php -i 的所有结果 , 粘贴到: https://xdebug.org/wizard.php # 点击分析按钮(在最底下) , 然后按照步骤执行 curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz tar xvzf autoconf-latest.tar.gz cd autoconf-* ./configure --prefix=/usr/local make sudo make install; wget http://xdebug.org/files/xdebug-2.5.0.tgz tar xvzf xdebug-2.5.0.tgz cd xdebug-2.5.0 phpize; ./configure make sudo cp modules/xdebug.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226 sudo vi /usr/local/php_5.6.9.12/etc/php.ini # 追加一行插件 (在插件哪里) zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so #重启php sudo /etc/init.d/php-fpm restart #查看是否生效 php -i | grep xdebug