Docs Menu
Docs Home
/
MongoDB Manual
/ / /

Upgrade to MongoDB Enterprise (Standalone)

On this page

  • About This Task
  • Steps

MongoDB Enterprise provides various features not available in the MongoDB Community edition, such as:

The following steps outline the procedure to upgrade a standalone mongod from the MongoDB Community Edition to the MongoDB Enterprise Edition. For example, the steps can be used to upgrade MongoDB 7.0 Community to MongoDB 7.0 Enterprise.

Warning

Do not use these instructions to upgrade to another release version. To upgrade release versions, refer to the appropriate release upgrade instructions, such as Upgrade to MongoDB 8.0.

With Ops Manager, you can automatically upgrade from MongoDB Community Server to MongoDB Enterprise Server.

For more information, see Change MongoDB Version.

1

Upgrades to a running MongoDB Server process can have unexpected results. Before you begin, stop the existing mongod process.

To stop the mongod process, run the following command:

sudo systemctl stop mongodb

To stop the mongod process, run the following command on cmd.exe:

net stop MongoDB
2

If you installed MongoDB Community Server with a package manager on Linux, you must remove the existing packages before you install MongoDB Enterprise Server.

To remove MongoDB Community Server:

To remove MongoDB Community Server from RHEL, CentOS, Alma Linux, Oracle, Rocky, and Amazon Linux, run the following command:

sudo dnf remove $(sudo rpm -qa | grep mongodb-org)

To remove MongoDB Community Server from Ubuntu and Debian, run the following command:

sudo apt remove mongodb-org\*

To remove MongoDB Community Server from SUSE Enterprise Linux, run the following command:

sudo zypper remove $(sudo rpm -qa | grep mongodb-org)

To remove MongoDB Community Server for macOS (if you installed it with Homebrew), run the following command:

brew uninstall mongodb-community mongodb-database-tools

To remove the MongoDB tap from Homebrew, run the following command:

brew untap mongodb/brew
3

Depending on your operating system, you can install the MongoDB Enterprise binaries by using a package manager or by downloading the binaries manually.

If you have installed MongoDB Community using a package manager, follow the package manager instructions for your operating system:

If you have not installed MongoDB using a package manager, you can manually download the MongoDB binaries from the MongoDB Download Center. Follow the manual instructions, including specific prerequisites for MongoDB Enterprise, for your operating system:

Important

Install to a location different from that of your current Community edition.

In the upgrade procedure, you will use the existing data directory and, if applicable, the existing configuration file.

Important

You cannot use the .msi to install the Enterprise edition if you have the Community edition of the same release series installed on the same machine. That is, if you have version 4.4.0 Community edition installed, you cannot use the .msi to install the 4.4.0 or 4.4.1 Enterprise edition.

  1. Manually download the archive file from the MongoDB Download Center.

  2. To install, extract/unzip the file to a location different from that of your current Community edition.

    In the upgrade procedure, you will use the existing data directory and, if applicable, the existing configuration file.

Install the binaries:

  1. Manually download the archive file from the MongoDB Download Center.

  2. Extract the files to a location different from that of your current Community edition. For details on extracting the files, see macOS.

    In the upgrade procedure, you will use the existing data directory and, if applicable, the existing configuration file.

4

Start the Enterprise mongod process.

To start MongoDB Enterprise Server, run the following command:

sudo systemctl start mongodb

To start MongoDB Enterprise Server, run the following command in cmd.exe:

net start MongoDB

To start MongoDB Enterprise Server, run the following command from the console:

mongod --config /usr/local/etc/mongodb.conf

Back

Upgrade Community to Enterprise