서버 구매화면
Serverless : 건당으로 요금 지불
M10 : 시간당 요금 지불
M0 : 무료판
Connect로 연결
접속 방법 선택 창
MongoDB Shell 로 접속한 모습
샘플 데이터셋 다운로드
./mongod --replSet rs1 --port 27019 --bind_ip "0.0.0.0" --dbpath D:/mongo-workspace/data3 --oplogSize 128
rs.initiate({ _id: "rs1", members: [ { _id: 0, host: "localhost:27017" }, { _id: 1, host: "localhost:27018" }, { _id: 2, host: "localhost:27019" }], });
rs.initiate({
_id: "rs1",
members: [
{ _id: 0, host: "localhost:27017"},
{ _id: 1, host: "localhost:27018"},
{ _id: 2, host: "localhost:27019"},
]
});
net:
port:27019
bindIp: 0.0.0.0
storage:
dbPath: "/D:/mongo-workspace/data3"
directoryPerDB: true
replication:
oplogSizeMB: 128
replSetName: "rs1"
systemLog:
path: "/D:/mongo-workspace/logs/mongod3.log"
destination: "file"
./mongod -f D:/mongo-workspace/config/mongod1.conf