安装了mongodb,添加了管理员root和test数据库的用户rex,并且开启的用户认证。
按照说明文档连接mongodb数据库:$mongo = new Mongo(“mongodb://rex:123456@localhost”);
结果开启firebug之后发现报错:”NetworkError: 500 Internal Server Error - http://192.168.202.132/montest.php"
在这里尝试了很多方法都无法解决,也不清楚为什么出了错,只能再看一遍php的官方文档(http://php.net/manual/zh/mongoclient.construct.php )