Docs Menu

macOS에 설치

다운로드한 ZIP 파일을 사용하여 macOS에서 MongoDB Cluster-to-Cluster Sync를 구성하려면 이 페이지의 단계를 따르세요.

이 튜토리얼에서는 mongosync 의 최신 버전을 설치합니다.

MongoDB Cluster-to-Cluster Sync 1.12 은 macOS 10.14 이상을 지원합니다.

Cluster-to-Cluster Sync 는 클러스터 간 동기화를 지원합니다. MongoDB 서버 버전 호환성에 대한 자세한 내용은 MongoDB Server 버전 호환성을 참조하세요.

다음 단계에 따라 ZIP 파일에서 Cluster-to-Cluster Sync를 수동으로 설치합니다.

1

다음 링크에서 Cluster-to-Cluster Sync ZIP 파일을 다운로드합니다.

MongoDB 다운로드 센터

  1. Version 드롭다운 메뉴에서 다운로드할 Cluster-to-Cluster Sync 버전을 선택합니다.

  2. Platform 드롭다운에서 macOS 플랫폼을 선택합니다.

  3. Package 드롭다운 메뉴에서 zip를 선택합니다.

  4. Download를 클릭합니다.

2

mongosync 의 압축을 풀려면 시스템 shell에서 unzip 명령을 사용합니다.

unzip mongosync-*.zip
3

mongosync 바이너리는 압축을 푼 tarball의 bin/ 디렉토리에 있습니다. mongosync 바이너리의 위치를 PATH 에 추가하려면 다음 중 하나를 수행하세요.

  • 바이너리를 PATH 변수에 나열된 디렉토리(예: /usr/local/bin)에 복사합니다. ( tar 파일을 추출한 위치를 반영하도록 /path/to/mongosync/bin 를 업데이트합니다.)

    sudo cp /path/to/mongosync/bin/mongosync /usr/local/bin/
  • PATH 에 이미 있는 디렉토리(예: /usr/local/bin )에서 mongosync 바이너리에 대한 기호 링크를 생성합니다. ( tar 파일을 추출한 위치를 반영하도록 /path/to/mongosync/bin 을(를) 업데이트합니다.)

    sudo ln -s /path/to/mongosync/bin/mongosync /usr/local/bin/mongosync