Remote mongo - refused

MongoDB was installed on Ubuntu 16.04.

When i connect the mongo on my pc, I get the error:

Failed to connect to 192.168.1.118:27017, reason: errno:61 Connection refused

change /etc/mongod.conffile

bind_ip = 127.0.0.1
port = 27017

to

bind_ip = 0.0.0.0
port = 27017

restart it

sudo service mongod restart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章