Upgrade to MongoDB Enterprise (Standalone)
On this page
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.
About This Task
Upgrade Major Releases
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.
Ops Manager
With Ops Manager, you can automatically upgrade from MongoDB Community Server to MongoDB Enterprise Server.
For more information, see Change MongoDB Version.
Steps
Stop MongoDB Community Server
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
Remove MongoDB Community Server
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
Install MongoDB Enterprise Server
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.
Manually download the archive file from the MongoDB Download Center.
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:
Manually download the archive file from the MongoDB Download Center.
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.
Start MongoDB Enterprise Server
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