解决方法: 1.改配置:conf:
bind_ip:0.0.0.0
mongod.conf 重启服务就好了
bin
/mongod
-f conf
/mongod
.conf
--shutdown
bin
/mongod
-f conf
/mongod
.conf
进入客户端
bin
/mongo localhost:12345
运行代码如下: 以上问题已解决。
可以连接Navicat
转载请注明原文地址: https://lol.8miu.com/read-17494.html