4
I installed Mongo in the C drive and did some data creation tests and persisted,then consulted and there they were perfectly listed at the prompt.
So far so good!
I open the browser and type localhost:27017
and appears the message of life sign:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
But when I try localhost:28017
only see:
Esta página da web não está disponível
What should I do?
Vc configured the Mongodb web panel to respond to port 28017?
– Thiago Lunardi
@Thiagolunardi Thanks for your attention. How would I do just that? I’m using version 2.6.11
– Pena Pintada
I never did, the case is that by default Mongodb sets up his websetup at port 27017, not at gate 28017. That’s why you get a 404, because there is no web application responding on this port.
– Thiago Lunardi
What are you trying to do Pena? If you want to query data via browser, you should add the
--rest
when you run Mongo. After that you can access throughhttp://localhost: 28017/mydb/mycollection/
and apply the filters that are needed.– André Varandas
@Thank you, my friend! I’m a beginner in NOSQL, is that I saw in an installation tutorial the guy navigating the port 27017 and also 28017, and when I tried to do the same, I couldn’t!! He didn’t teach you how to do that!! Where do I type the command you mentioned? I have two open terminals with mongod and other with Ngo where I work visualizing the data!
– Pena Pintada
Now this Feather, try to stop the mongod and run something like this again:
mongod --dbpath /data/db --rest
or else if you are not specifying any argument just domongod --rest
– André Varandas
@Andrévarandas Genius, it worked!! you could have answered the question comrade!! Answer!! Arigato! ,Sayonara!! -
– Pena Pintada