Lastest MongoDb package on debian is bind to 127.0.0.1, this address doesn’t allow the connection by remote hosts, to change it u must set bind to 0.0.0.0 for eg
root@debian:/var/www# nano /etc/mongodb.conf
bind_ip = 0.0.0.0
port = 27017
root@debian:/var/www/lithium# /etc/init.d/mongodb restart
Done! Remember to secure the connection by password in production mode.
'프로그래밍 > python' 카테고리의 다른 글
파이썬의 정수 나누기 연산 (0) | 2016.11.29 |
---|---|
우분투에서 장고1.4 설치하기 (0) | 2014.10.29 |
몽고DB 설치 (0) | 2014.10.28 |