没有出现错误,但在使用客户端时,我总是收到以下警告(我正在使用django)。See PyMongo's documentation for details: http://api.mongodb.org/python/current/faq.html#is-pymongo-fork-safeCreate MongoClient only " 检出API文档后,似乎在使用fork()时弹出警告,而我并没有显式使用它。
我在docker / mongodb上创建了这个docker-复合文件,然后使用命令docker-compose up -d启动容器,这是非常标准的。: root ME_CONFIG_MONGODB_URL: mongodb://root:examplehour ago Up About an hour 27017/tcp