MongoDB 설치 준비
1. CentOS server
CentOS 7 기준
epel 설치
yum update yum install -y epel-release
npm 설치
yum install -y npm
2. mongoDB download & install
mongodb download
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.6.tgz https://www.mongodb.com/download-center#community 에서 최신버전 확인
위치 선정
mv ./mongodb-linux-x86_64-amazon-3.2.6 /usr/local/mongodb
설정
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