For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

Upgrade to MongoDB Enterprise (Standalone)

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.

For general guidance on MongoDB version numbering, release types, and upgrade paths, see MongoDB Versions and Upgrade Paths.

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
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)
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:

4

Start the Enterprise mongod process.

To start MongoDB Enterprise Server, run the following command:

sudo systemctl start mongodb
Rate this page