1인 MongoDB University 12/18-Server Tools Overview

이 기록은 부가 달력 형식으로 몬godb University의 학습 과정을 기록한 18일째!
현재 진행 중인 노선: M103[1].목표는 12/25 이전에 Chapter 1 완성!
  • 추가 달력 / 1인 MongodB University 준비
  • Chapter 1: Server Tools Overview(비디오)


    mongod, mongo 이외의 명령에 대한 소개입니다.
  • mongostats
  • mongodump/mongorestore
  • mongoimport/mongoexport
  • # コマンドの確認
    root@9f8e2b89ecb6:/# which mongo
    /usr/bin/mongo
    root@9f8e2b89ecb6:/# ls /usr/bin/mongo
    mongo         mongodump     mongofiles    mongorestore  mongostat
    mongod        mongoexport   mongoimport   mongos        mongotop
    
    # findコマンドで確認
    root@9f8e2b89ecb6:/# find /usr/bin/ -name "mongo*"
    /usr/bin/mongos # これはなに?
    /usr/bin/mongodump
    /usr/bin/mongod
    /usr/bin/mongotop
    /usr/bin/mongoexport
    /usr/bin/mongofiles # これはなに?
    /usr/bin/mongostat
    /usr/bin/mongo
    /usr/bin/mongoimport
    /usr/bin/mongorestore
    
    명령의 확인
    애니메이션에 소개되지 않은 게 있어서요.
  • mongos
  • https://docs.mongodb.com/manual/reference/program/mongos/

  • https://stackoverflow.com/questions/28364778/what-is-the-exact-difference-between-mongod-and-mongos(잘 몰라서)
  • https://docs.mongodb.com/manual/reference/program/#core-processes
  • mongos는 MongoDB Shard를 위해 사용하는 도구인 것 같습니다.
    해체된 그룹에 대한 조회와 조작을 실현하는 데 사용됩니다.
    고객의 요구를 처리하기 위해 사용한 것 같습니다.
  • mongofiles
  • https://docs.mongodb.com/manual/reference/program/mongofiles/index.html
  • The mongofiles utility makes it possible to manipulate files stored in your MongoDB instance in GridFS objects from the command line. It is particularly useful as it provides an interface between objects stored in your file system and GridFS.
  • 데이터 파일 작업을 위한 파일
  • GridFS object로 저장된 객체
  • mongostat


    몬godB의 상태를 알려주세요.
  • The mongostat utility provides a quick overview of the status of a currently
    running mongod or mongos instance
  • monod와monos 실례의 상태를 알려주세요
  • 명령행의 실행 결과입니다.

    mongodump / mongorestore


    M100 노선도 나왔습니다.
    데이터는 바이너리와 BSON으로 작성됩니다.그 데이터도 가져올 수 있어요.

    mongoexport / mongoimport


    M100 노선도 나왔습니다.
    데이터는 바이너리와 BSON으로 작성됩니다.그 데이터도 가져올 수 있어요.

    Server Tools Overview(퀴즈)


    Problem
    Which of the following are true differences between mongoexport and mongodump?
    대답하다.
  • By default, mongoexport sends output to standard output, but mongodump writes to a file.
  • Mongodump outputs BSON, but mongoexport outputs JSON.
  • Mongodump can create a data file and a metadata file, but mongoexport just creates a data file.
  • 오늘의 진전


    시간이 없으니까 간단하게!이제 연습밖에 없어요!

    오늘의 젠.


    계속해서 같은 방법으로 진행되고 있다.
    각주
    M103: Basic Cluster Administration세트.수업을 시작하면 이수까지의 기한은 두 달 이내이다.↩︎

    좋은 웹페이지 즐겨찾기