블로그 이미지
LifeisSimple

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

2011. 1. 20. 15:25 Brain Trainning/NoSQL
우선 가볍게 config 파일을 하나 만들어 줍니다. 

내용은 다음과 유사하게 

-----------------------------------------------------------

#Start MongoDB as a daemon on port 27017

 

port = 27017 # 포트

fork = true # 데몬모드

logpath = /usr/mongodb/log/default.log #로그파일 위치

dbpath = /usr/mongodb/data/db  # DB 파일의 path

rest = true #rest 지원

...................

넣고 싶은 옵션들을 주저리 주저리 넣어줍니다.

-------------------------------------------------------------------------------------------


그리고, mongoDB를 실행해 줍니다. 

[root@mongoserver]# mongod --config /mongodb/config/mongo.conf


몽고DB가 깔끔하게 실행됩니다. 

posted by LifeisSimple