MongoDB running but can't connect using shell

前端 未结 17 1774
甜味超标
甜味超标 2020-12-23 16:45

CentOS 5.x Linux with MongoDB 2.0.1 (tried main and legacy-static)

MongoDB is running:

root     31664  1.5  1.4  81848 11148 ?        Sl   18:40   0:         


        
17条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 17:27

    I don't see this having an accepted answer yet, so I'll just add my 2 cents.

    I had the exact same issue just now. After a while I realized I've locked localhost out in my iptables rules. So, check your firewall.

提交回复
热议问题