我想利用
mongodb
在我的机器上的灯设置中。我一直使用的技术规格是:
OS: Linux(Ubuntu-16.04LTS)
PHP Version: PHP 7.0.33-0ubuntu0.16.04.2
mongo version: Percona Server for MongoDB shell version v3.4.18-2.16
PHP Framework: CodeIgnitor-3.1.10
以下是我尝试过的方法:
-
我用过
this library
无法连接mongo数据库,但无法正常工作。
-
我使用了中描述的代码方法
this thread
.
每次我试过
this file
作为库并配置为自动加载库,则我遇到了此问题:
找不到类“MongoClient”。