2016-12-05 30 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解決了

我會盡力聯繫維護人員。

相關問題