Linux下安装xdebug

我的环境是:CentOS7+php5.6.31

安装

wget http://www.xdebug.org/files/xdebug-2.x.x.tgz   

解压

tar zxvf xdebug-2.x.x.tgz   

进入目录

cd xdebug-2.x.x   

外挂

phpize   

配置 

./configure --with-php-config=/usr/local/php/bin/php-config 

编译 安装

make && make install   

php.ini加入拓展

extension=xdebug.so 

重启

service php-fpm restart  

猜你喜欢

转载自blog.csdn.net/u012663254/article/details/80311076