我尝试使用此代码连接到mongodb
$client = new \MongoDB\Driver\Manager("mongodb://localhost:27017");
但是我一直在接受这个
ERR_CONNECTION_RESET
我不知道这是因为我的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 :(得分:0)
我遇到了同样的问题。 我使用的是mongodb 1.2.1 x64 TS VC14 通过切换到1.1.10来解决问题
我会尝试联系维护人员。
答案 1 :(得分:0)
看起来你遇到了以下错误:https://jira.mongodb.org/browse/PHPC-854 - 我们正在积极研究这个问题。