1、问题如下所示: 2、在该位置输入以下代码 mongod --config D:\mongodb3.4.24\mongodb3.4.24\conf\mongod.conf 如下所示: 3、在另外打开一个命令提示符 输入mongo即可