UPDATED:
I'm just starting to deal with the new VPS, and I'm trying to connect its port 27017 (mongodb database) with localhost (using robomongo).
It works on my localhost machine and with another remote server, but I cannot connect mongodb on this VPS, what can cause this problem? I start like this:
mongod --setParameter enableLocalhostAuthBypass=0 --config /etc/mongodb.conf --fork
with auth = trueno comment in the /etc/mongodb.conf file (but it seems that the problem is not that I cannot auth, but mongodb does not respond at all). When I start mongo admin -u root -p rootby connecting to SSH, it works fine (I can connect my database) and I see that mongodb is listening well on port 27017.
But when I try to access it from my local machine, it cannot establish a connection, and if I try to connect it to my browser, I should get a mongodb: error message You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number, but I don't, I just have a crash page with Chrome (and port 28017 is also not responding).
How to solve this? My VPS is brand new and I may need to install more packages, but I really donβt see what might be needed for this, it also looks like a problem with the firewall, for example, something prevents mongodb and reaction before the request can achieve this I have juste installed apache2 and nginx and they do not work, so I really do not see ...
source
share