MongoDB 설치 준비

1. CentOS server

CentOS 7 기준

  1. epel 설치

    yum update
    yum install -y epel-release 
  2. npm 설치

    yum install -y npm 

2. mongoDB download & install

  1. mongodb download

    wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.6.tgz 
    https://www.mongodb.com/download-center#community 에서 최신버전 확인
    
  2. 위치 선정

    mv ./mongodb-linux-x86_64-amazon-3.2.6 /usr/local/mongodb 
  3. 설정

    cd /usr/local/mongodb mkdir data; mkidr config; mkidr log 
    vi ./config/mongdb.conf
    dbpath=/usr/local/mongodb 
    logpath=/usr/local/mongodb/log/mongodb.log 
    logappend=true port=5555 
    verbose=true 
    fork=true 
    rest=true