Docs Home / Compass

Download and Install Compass下载并安装Compass

Important

MongoDB Compass doesn't support virtual desktop environments.MongoDB Compass不支持虚拟桌面环境。

You can connect to your MongoDB Atlas deployment with MongoDB Compass. MongoDB Atlas is the fully managed service for MongoDB deployments in the cloud.您可以使用MongoDB Compass连接到您的MongoDB Atlas部署。MongoDB Atlas是云中MongoDB部署的完全托管服务。

To download and install MongoDB Compass, select your operating system:要下载并安装MongoDB Compass,请选择您的操作系统:

windows

Software Requirements软件需求

  • 64-bit version of macOS 11 or later.64位版本的macOS 11或更高版本。

  • MongoDB 7.0 or later.MongoDB 7.0或更高版本。

Compass requires:Compass要求:

  • 64-bit version of Microsoft Windows 10 or later.64位版本的Microsoft Windows 10或更高版本。

  • MongoDB 7.0 or later.MongoDB 7.0或更高版本。

  • Microsoft .NET Framework version 4.5 or later.Microsoft NET Framework 4.5或更高版本。

    The Compass installer prompts you to install the minimum required version of the .NET framework if it is not already installed on your system.Compass安装程序会提示您安装所需的最低版本的NET框架(如果您的系统上尚未安装)。

  • Starting the installation as an administrator if you are running a silent如果您正在运行静默模式,则以管理员身份启动安装
    installation using Microsoft PowerShell or installing on Azure Virtual Desktop Infrastructure (VDI).使用Microsoft PowerShell安装或在Azure虚拟桌面基础架构(VDI)上安装。

Download Compass下载Compass

To download Compass, you can use your preferred web browser.要下载Compass,您可以使用首选的网络浏览器。

  1. Open the downloads page.打开下载页面
  2. Select the installer you prefer. The MongoDB Compass installer is available as a .exe or .msi package or a .zip archive.选择您喜欢的安装程序。MongoDB Compass安装程序可以作为.exe.msi包或.zip存档提供。
  3. Download the latest version of MongoDB Compass for Windows.下载最新版本的Windows版MongoDB Compass。

Install Compass安装Compass

  1. Double-click the installer file.双击安装程序文件。
  2. Follow the prompts to install Compass. You can select the destination of the Compass installation.按照提示安装Compass。您可以选择Compass安装的目标。
  3. Once installed, Compass launches and prompts you to configure privacy settings and specify update preferences.安装后,Compass将启动并提示您配置隐私设置和指定更新首选项。
MacOS

Software Requirements软件需求

Compass requires:Compass要求:

  • 64-bit version of macOS 10.12 or later.64位版本的macOS 10.12或更高版本。

  • MongoDB 7.0 or later.

Compass supports x64 and ARM64 architectures.Compass支持x64和ARM64架构。

  • M1 Silicon is a supported ARM64 architecture and has a separate binary in the download center.M1 Silicon是一种受支持的ARM64架构,在下载中心有一个单独的二进制文件。

Compass supports x64 and ARM64 architectures.Compass支持x64和ARM64架构。

Download Compass下载Compass

To download Compass, you can use your preferred web browser.要下载Compass,您可以使用首选的网络浏览器。

  1. Open the downloads page.打开下载页面
  2. Download the latest version of MongoDB Compass for macOS. The MongoDB Compass installer is a .dmg disk image.下载适用于macOS的最新版本的MongoDB Compass。MongoDB Compass安装程序是一个.dmg磁盘映像。

Install Compass安装Compass

  1. Once you have downloaded Compass, double-click on the .dmg file to open the disk image within the macOS Finder.下载Compass后,双击.dmg文件在macOS Finder中打开磁盘映像。
  2. Drag the MongoDB Compass application to your Applications folder.将MongoDB Compass应用程序拖动到“应用程序”文件夹中。
  3. Eject the disk image.弹出磁盘映像。
  4. From the Applications folder, double-click on the Compass icon to start the application.Applications文件夹中,双击Compass图标以启动应用程序。
  5. When you open MongoDB Compass for the first time, you may receive a notice stating that it is an application downloaded from the internet, requiring you to confirm you want to open it. Click Open to continue and launch Compass.首次打开MongoDB Compass时,您可能会收到一条通知,说明它是从互联网下载的应用程序,要求您确认是否要打开它。单击“打开”继续并启动Compass。

Note

Depending on your system's security settings, you may have to modify your system settings to grant Compass permissions to run. You may be prompted to enter your system password before launching Compass.根据系统的安全设置,您可能需要修改系统设置以授予Compass运行权限。在启动Compass之前,系统可能会提示您输入系统密码。

Linux

Note

When you run MongoDB Compass on Linux machines using Nvidia graphics cards, MongoDB Compass may not render correctly. If an error returns, try including the --disable-gpu flag when you run the application.当您在使用Nvidia图形卡的Linux机器上运行MongoDB Compass时,MongoDB Compass可能无法正确渲染。如果返回错误,请尝试在运行应用程序时包含--disable-gpu标志。

Software Requirements软件需求

Compass requires:Compass要求:

  • 64-bit version of RHEL 8+ or later.RHEL 8+或更高版本的64位版本。

  • MongoDB 7.0 or later.MongoDB 7.0或更高版本。

Download and Install Compass下载并安装Compass

  1. Download MongoDB Compass.下载MongoDBCompass。

    wget https://downloads.mongodb.com/compass/mongodb-compass-1.46.10.x86_64.rpm
  2. Install MongoDB Compass.安装MongoDB Compass。

    sudo yum install mongodb-compass-1.46.10.x86_64.rpm
  3. Start MongoDB Compass.启动MongoDB Compass。

    mongodb-compass

Note

When you run MongoDB Compass on Linux machines using Nvidia graphics cards, MongoDB Compass may not render correctly. If an error returns, try including the --disable-gpu flag when you run the application.当您在使用Nvidia图形卡的Linux机器上运行MongoDB Compass时,MongoDB Compass可能无法正确渲染。如果返回错误,请尝试在运行应用程序时包含--disable-gpu标志。

ubuntu

Software Requirements软件需求

Compass requires:Compass要求:

  • 64-bit version of Ubuntu 20.04 or later.64位版本的Ubuntu 20.04或更高版本。

  • MongoDB 7.0 or later.MongoDB 7.0或更高版本。

Download and Install Compass下载并安装Compass

To download Compass on Linux systems, use wget.要在Linux系统上下载Compass,请使用wget

Note

Alternatively, you can download Compass from the MongoDB downloads page.或者,您可以从MongoDB下载页面下载Compass。

  1. Download MongoDB Compass.下载MongoDBCompass。

    wget https://downloads.mongodb.com/compass/mongodb-compass_1.46.10_amd64.deb
  2. Install MongoDB Compass.安装MongoDB Compass。

    sudo apt install ./mongodb-compass_1.46.10_amd64.deb

    If your Linux distribution does not support using apt for installing local .deb files, run the following lines to install MongoDB Compass:如果您的Linux发行版不支持使用apt安装本地.deb文件,请运行以下行安装MongoDB Compass:

    sudo dpkg -i mongodb-compass_1.46.10_amd64.deb
    sudo apt-get install -f # This installs required compass dependencies
  3. Start MongoDB Compass.启动MongoDB Compass。

    mongodb-compass