我试图通过mongodb连接到mlab上的我的数据库我有cd到mongodb目录然后我运行代码所有我得到这个错误如果我试图通过localhost连接它很好但是在真实服务器我得到错误是错误
./bin/mongo ds151508.mlab.com:51508/dansql -u xx -p xxx
MongoDB shell version v3.6.3
connecting to: mongodb://ds151508.mlab.com:51508/dansql
2018-02-28T09:31:17.748-0700 W NETWORK [thread1] Failed to connect to 34.228.213.238:51508, in(checking socket for error after poll), reason: Connection refused
2018-02-28T09:31:17.749-0700 E QUERY [thread1] Error: couldn't connect to server ds151508.mlab.com:51508, connection attempt failed :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed
有人可以帮忙吗?