Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

ACTIVITY:

“INSTALLATION OF MONGODB”

TÉCNICO SUPERIOR UNIVERSITARIO EN


TECNOLOGÍAS DE LA INFORMACIÓN
AREA: DESARROLLO DE SOFTWARE
MULTIPLATAFORMA
PRESENTS:

HUMBERTO MISAEL ARAGUZ CRUZ

CT. REYNOSA, TAMAULIPAS AUGUST 2024.


Table of contents

Subject Page

Table of contents .................................................................................................. i

Introduction ......................................................................................................... 1

Installing MongoDB Community Edition Locally .................................................. 1

Prerequisites ................................................................................................... 1

Download the MongoDB Installer .................................................................... 1

Install MongoDB .............................................................................................. 2

Windows ...................................................................................................... 2

macOS/Linux ............................................................................................... 2

Start MongoDB ................................................................................................ 3

Windows ...................................................................................................... 3

macOS/Linux ............................................................................................... 3

Verify Installation ............................................................................................. 3

References.......................................................................................................... 4

i
Introduction

MongoDB, a popular NoSQL database, offers a flexible and scalable solution for
data storage. This guide empowers you to set up MongoDB Community Edition
on your local machine, providing a personal playground for development and
exploration. Follow these step-by-step instructions to get started with MongoDB
and unlock the potential of NoSQL data management.

Installing MongoDB Community Edition Locally

Prerequisites

• An internet connection to download the installer.


• Administrative privileges on your machine.

Download the MongoDB Installer

1. Go to the official MongoDB download page: [download mongodb ON


mongodb.com]

2. Select the following options:

• Version: Choose a stable version (e.g., latest stable version).


• Platform: Select your operating system (Windows, macOS, or Linux).
• Package: Depending on your OS, choose the appropriate package type (e.g.,
msi for Windows, .deb or .rpm for Linux).

1
3. Click Download.

Install MongoDB

Windows

1. Double-click the downloaded .msi installer file.

2. Follow the on-screen instructions in the installation wizard. Here are some key
points during the installation:

• Choose "Install MongoD as a Service". This option allows MongoDB to run in


the background as a service.
• Select the desired service name and data directory (where MongoDB stores
its data).

macOS/Linux

1. Open a terminal window.

2. Navigate to the directory where you downloaded the installer file.

3. Follow the specific installation instructions based on your chosen package type:

• “.deb” package:

sudo dpkg -i mongodb-<version>-community_<architecture>.deb

• “.rpm” package:

sudo yum localinstall mongodb-<version>-community_<architecture>.rpm

(Replace yum with dnf if your system uses dnf)

2
4. After the installation is complete, proceed to the Start MongoDB section.

Start MongoDB

Windows

1. Open the Services application (search for "Services" in the Start menu).

2. Locate the "MongoDB" service.

3. Right-click on the service and select "Start".

macOS/Linux

1. Open a terminal window.

2. Use the following command to start the MongoDB service:

sudo systemctl start mongod

Verify Installation

1. Open a terminal window.

2. Use the following command to check if the MongoDB server is running:

mongo --port 27017

3. If the connection is successful, you will see the >” prompt, indicating you are
connected to the MongoDB server.

3
4. Type exit to exit the MongoDB shell.

References

Mongodb. (2022). Install MongoDB Community Edition on Windows. Retrieved


from Mongodb.com:
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-
windows/

You might also like