Installation
Windows Installation
Method 1: MongoDB Installer (Recommended)
Method 2: Using Chocolatey (Package Manager)
choco install mongodbConfigure Path Environment Variable
# Default installation path
$env:Path += ";C:\Program Files\MongoDB\Server\{version}\bin"# Start MongoDB service
net start MongoDB
# Stop MongoDB service
net stop MongoDBLinux Installation
Ubuntu/Debian
RHEL/CentOS/Fedora
macOS Installation
Method 1: Using Homebrew (Recommended)
Method 2: Manual Installation
Verifying Installation
Check MongoDB Version
Test MongoDB Connection
Log Files Location
Uninstall MongoDB
Ubuntu/Debian
macOS (Homebrew)
Windows
Last updated