27017

TCP

MongoDB

MongoDB Database

⚠️ Security: DependsStatus: Active🗄️ Category: Database

📋 Basic Information

Port Number
27017
Protocol
TCP
Service
MongoDB
Popularity
🔥 High
Description
MongoDB NoSQL document-oriented database with JSON document storage, schema-less flexibility, horizontal scaling, sharding, and replica sets
Tags
databasenosqlmongodb

🔒 Security Information

💡

Security Notes

Do not expose externally, enable authentication and use TLS

🛠️ Installation

🐧Linux

# Ubuntu/Debian
wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt update
sudo apt install mongodb-org -y
sudo systemctl start mongod
sudo systemctl enable mongod

🐳Docker

docker run -d --name mongodb -p 27017:27017 mongo:latest

🔌Connect

mongosh mongodb://localhost:27017

🔗 Related Ports