服务器上的Xdebug无法连接到我的计算机

时间:2013-05-02 17:26:39

标签: xdebug phpstorm

我在Windows 7中使用PhpStorm进行开发。我正在尝试设置xdebug。

我使用pecl将xdebug安装到服务器。

我将这些代码添加到php.ini

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.

xdebug.remote_enable=1
xdebug.remote_host=212.2XX.179.83
xdebug.remote_port=9001
xdebug.idekey="PHPSTORM"
xdebug.remote_log=/tmp/xdebug.log

phpinfo()显示Xdebug正在运行。

当我使用时;

netstat -aon | more

在cmd上我可以看到它在端口9001中的列表

 TCP    0.0.0.0:9001           0.0.0.0:0              LISTENING       4908

但Xdebug无法连接到PhpStorm

xdebug.log显示它无法连接到我的ip:port

Log opened at 2013-05-02 17:20:55  
I: Connecting to configured address/port: 212.2XX.179.83:9001.
E: Could not connect to client. :-(
Log closed at 2013-05-02 17:20:58

Log opened at 2013-05-02 17:20:58
I: Connecting to configured address/port: 212.2XX.179.83:9001.
E: Could not connect to client. :-(
Log closed at 2013-05-02 17:21:16

Log opened at 2013-05-02 17:21:16
I: Connecting to configured address/port: 212.2XX.179.83:9001.
E: Could not connect to client. :-(
Log closed at 2013-05-02 17:21:19

我跑了;

nc -v 212.2XX.179.83 9001

在服务器上并回答

nc: connect to 212.2XX.179.83 port 9001 (tcp) failed: Connection timed out

我正在研究这个问题2天但找不到解决方案。

有关调试服务器无法连接到ip的原因的任何帮助都会很棒。感谢

编辑:问题已解决,似乎我的服务器出现问题,我们不得不重新安装防火墙csf

0 个答案:

没有答案