我已经看到了这个错误几次,并修复它,我只是重新启动我的服务器。MongoDB列入黑名单致命错误
Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Previous connection attempts failed, server blacklisted' in /var/www/html/include/config.php:9 Stack trace: #0 /var/www/html/include/config.php(9): MongoClient->__construct('mongodb://local...') #1 /var/www/html/classes.php(3): include('/var/www/html/i...') #2 /var/www/html/myusers.php(8): include('/var/www/html/c...') #3 {main} thrown in /var/www/html/include/config.php on line 9
但是,我可能有一段时间没有看到它...我怎样才能防止这个问题发生?
更新:它再次发生,并等待几分钟后,我不得不重新启动,以再次使现场工作
这不是一个错误...这是一个功能。 – Derick
当我看看[this]时,看起来像是一个bug(https://jira.mongodb.org/browse/PHP-846)。我的错。顺便说一句,很高兴被XDebug的创造者评论。 *弓* :) – ciruvan