Question
MongoDB http interface is not working
Hello, i want to open MongoDB HTTP Interface ( http://docs.mongodb.org/ecosystem/tools/http-interfaces) but i can open http://188.226.225.xx:28017/news/news. I am add a rule to iptables :
sudo iptables -I INPUT -p tcp -m state –state NEW,ESTABLISHED –dport 27017 -j ACCEPT
But something wrong. Please. help ,me
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
What I did was follow the instruction in the mongod.conf file
Comment the
bind_ip
value.Save the file and restart mongod
Plus, i added
iptable
rule:and save the rules
That does the trick for me.
Hope this help.
-
A