[mongoDB] 외부 접속 설정 for centos

2015. 8. 27. 14:22DB



336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

설정 파일 - 


 #vim /etc/mongod.conf


bind_ip 확인


(default)bind_ip = 127.0.0.1 


위치 상관없이 접속 가능



 bind_ip = 0.0.0.0 으로 수정 


특정 아이피 허용


bind_ip = xxx.xxx.xxx.xxx , xxx.xxx.xxx.xxx ( 쉼표 구분으로 추가 가능 ) 


설정했으면 재시작 잊지말고..


service mongod restart

'DB' 카테고리의 다른 글

[MYSQL] order by 조건  (0) 2018.07.19
[mysql] index / 인덱스  (0) 2017.01.03
[mongoDB] centos에서 php 드라이버 설치하기  (0) 2015.08.27
[MongoDB] centos에 mongodb 3.0 설치  (0) 2015.08.25
[mongoDB] centos에 몽고DB 설치하기  (0) 2015.08.25