开发者社区 问答 正文

mongodb远程无法访问,求助。

问题如下:
我使用robomongo也无法登陆远程mongdb,使用spring data -mongo也是一样,具体配置如下
mongo.conf
`dbpath=/data/mongodb/db
logpath=/data/mongodb/log/mongod.log
logappend=true
port=27017
fork=true
bind_ip =0.0.0.0
auth=true
linux iptables`

`[root@devserver2 init.d]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:27017
spring-mongo.xml

              host="192.168.15.132"
              port="27017"
              dbname="crm"
              username="crm"
              password="123456"/>



`
请问各位,这是什么原因?

展开
收起
落地花开啦 2016-02-25 11:34:54 2886 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    bind_ip =0.0.0.0 去掉

    2019-07-17 18:47:20
    赞同 展开评论