A
A
Andrew Chil2017-01-19 16:18:40
MongoDB
Andrew Chil, 2017-01-19 16:18:40

Mongodb up and running?

Good afternoon! Started to deal with the Mongodb database. Before that, I did not work with any database.
And here a couple of questions immediately appeared.
Please explain how to make it available from anywhere.
Now it normally starts (mongod) from the standard Windows terminal, when I do it from the phpstorm terminal, it starts, but immediately exits and becomes unavailable. How to fix it?
Also, please tell me literature, lessons on working with it.
Thank you in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sveratum, 2017-01-20
@srsd

First, configure the mongo on the external interface, the net.bindIp parameter. In this case, the mongo shell will be accessed by - mongo --host . It also does not hurt to adjust the access levels.
Also firewall rules.
It all depends on the environment where the impact occurs, if the local machine (closed network) then you can neglect the security settings.
Basically, the documentation is quite exhaustive, not understandable / not clear points to study separately.
It all depends on the environment - where and how monga is installed and how you are going to interact with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question