首先设置服务器Mongo的远程连接:
vim /usr/local/mongodb/etc/mongodb.conf
注释掉:
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
绑定ip 默认127.0.0.1只允许本地连接
bind_ip = 0.0.0.0
重启Mongo 远程连接:
service mongod restart
Robo3T连接远程MongoDB报错:Failed to refresh ‘Collections‘. Error: ListCollections failed:
可能是版本的问题:
Robo 3T 1.4 -> MongoDB 4.2
Robo 3T 1.3 -> MongoDB 4.0
Robo 3T 1.1 -> MongoDB 3.4
Robo 3T 0.9 -> MongoDB 3.2
Robo 3T 0.8.x -> MongoDB 2.4.0
下载对应的版本:
https://github.com/Studio3T/robomongo/releases/tag/v1.3.1