2016-12-05 25 views
1

我尝试连接使用此代码的MongoDB 驱动程序管理器不工作,ERR_CONNECTION_RESET

$client = new \MongoDB\Driver\Manager("mongodb://localhost:27017");

不过我老觉得

ERR_CONNECTION_RESET

我不知道如果到MongoDB的这是因为我的Apache Xampp或我的MongoDb驱动程序

这里是apache的错误日志:

[Tue Dec 06 00:36:01.403066 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00428: Parent: child process 5920 exited with status 3221225477 -- Restarting. 
[Tue Dec 06 00:36:01.604494 2016] [ssl:warn] [pid 2224:tid 556] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:01.635578 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24 configured -- resuming normal operations 
[Tue Dec 06 00:36:01.635578 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22 
[Tue Dec 06 00:36:01.635578 2016] [core:notice] [pid 2224:tid 556] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' 
[Tue Dec 06 00:36:01.638472 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00418: Parent: Created child process 7632 
[Tue Dec 06 00:36:02.108281 2016] [ssl:warn] [pid 7632:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:02.239230 2016] [ssl:warn] [pid 7632:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:02.271266 2016] [mpm_winnt:notice] [pid 7632:tid 608] AH00354: Child: Starting 150 worker threads. 
[Tue Dec 06 00:36:03.374280 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00428: Parent: child process 7632 exited with status 3221225477 -- Restarting. 
[Tue Dec 06 00:36:03.588130 2016] [ssl:warn] [pid 2224:tid 556] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:03.617244 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24 configured -- resuming normal operations 
[Tue Dec 06 00:36:03.617244 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22 
[Tue Dec 06 00:36:03.617244 2016] [core:notice] [pid 2224:tid 556] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' 
[Tue Dec 06 00:36:03.619840 2016] [mpm_winnt:notice] [pid 2224:tid 556] AH00418: Parent: Created child process 7780 
[Tue Dec 06 00:36:04.078121 2016] [ssl:warn] [pid 7780:tid 612] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:04.198572 2016] [ssl:warn] [pid 7780:tid 612] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 
[Tue Dec 06 00:36:04.227650 2016] [mpm_winnt:notice] [pid 7780:tid 612] AH00354: Child: Starting 150 worker threads. 

请帮助我,我已经通过所有类似的问题阅读,但仍然困惑如何解决它

+0

你可以分享你的'mongod'日志吗?你也可以用mongo客户端建立连接吗?它似乎不完全工作! –

回答

0

我有同样的问题。 我使用的是mongodb 1.2.1 x64 TS VC14 问题已通过切换到1.1.10解决了

我会尽力联系维护人员。

相关问题