Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongodb + remote access

Tags:

mongodb

I've installed mongodb on Linux(CenOS) server as it's written in docs. But still remote access is impossible (although conecting from mongo shell locally is ok). Can someone provide docs on proper configuring of mongodb?

Thank you in advance!

like image 715
Eugeny89 Avatar asked Dec 02 '25 10:12

Eugeny89


1 Answers

Source: MongoDb setup config to connect by remote hosts

On ubuntu:

root@debian:$ sudo nano /etc/mongodb.conf

Make sure you have the following lines

bind_ip = 0.0.0.0 port = 27017

root@debian:$ /etc/init.d/mongodb restart

like image 87
Suriyamoorthy Baskaran Avatar answered Dec 05 '25 02:12

Suriyamoorthy Baskaran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!