• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and configure MongoDB on Fedora 34

  • 00:03 cat /etc/os-release
  • 00:44 vim /etc/yum.repos.d/mongodb.repo
  • 01:03 dnf install mongodb-org mongodb-org-server
  • 01:27 systemctl enable mongod.service
  • 01:37 systemctl start mongod.service
  • 01:46 systemctl status mongod.service
  • 01:56 mongod --version
6930

To Install And Configure MongoDB On Fedora 34.

Introduction:

MongoDB is an open-source NoSQL database management system that stores, retrieves, and manages document-oriented information.

Installation Procedure:

Step 1: Check the installed OS version by using the below command.

[root@linuxhelp ~]# cat /etc/os-release
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Step 2: Add the MongoDB repository key to add repository by using the below command.

[root@linuxhelp ~]# vim /etc/yum.repos.d/mongodb.repo
[Mongodb]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/


gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

Step 3: Install the MongoDB by using the below command.

[root@linuxhelp ~]# dnf install mongodb-org mongodb-org-server
MongoDB Repository                                                             43 kB/s |  32 kB     00:00    
Last metadata expiration check: 0:00:01 ago on Wed 15 Dec 2021 06:54:21 AM IST.
Dependencies resolved.

 Problem: package mongodb-org-4.4.10-1.el8.x86_64 requires mongodb-org-tools = 4.4.10, but none of the providers can be installed
  - package mongodb-org-tools-4.4.10-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.10, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.10-1.el8.x86_64
==============================================================================================================
 Package                                   Architecture    Version                     Repository        Size
==============================================================================================================
Installing:
 mongodb-org                               x86_64          4.4.4-1.el8                 Mongodb           10 k
Installing dependencies:
 annobin                                   x86_64          9.79-2.fc34                 updates          133 k
 dwz                                       x86_64          0.14-1.fc34                 fedora           129 k
 efi-srpm-macros                           noarch          5-4.fc34                    updates           22 k

Transaction Summary


==============================================================================================================
Install  30 Packages
Skip      3 Packages

Total download size: 131 M
Installed size: 379 M
Is this ok [y/N]: y
Downloading Packages:
(1/30): go-srpm-macros-3.0.10-1.fc34.noarch.rpm                                74 kB/s |  25 kB     00:00    
(2/30): efi-srpm-macros-5-4.fc34.noarch.rpm                                    60 kB/s |  22 kB     00:00    
(3/30): python-srpm-macros-3.9-41.fc34.noarch.rpm                             116 kB/s |  21 kB     00:00    
  Running scriptlet: mongodb-database-tools-100.5.1-1.x86_64                                             4/30 
  Installing       : mongodb-database-tools-100.5.1-1.x86_64                                             4/30 
  Running scriptlet: mongodb-database-tools-100.5.1-1.x86_64                                             4/30 
  Installing       : mongodb-org-database-tools-extra-4.4.4-1.el8.x86_64                                 5/30 
  Installing       : mongodb-org-tools-4.4.4-1.el8.x86_64                                                6/30 
  Installing       : mongodb-org-shell-4.4.4-1.el8.x86_64                                                7/30 

Installed:
  annobin-9.79-2.fc34.x86_64                                  dwz-0.14-1.fc34.x86_64                         
  efi-srpm-macros-5-4.fc34.noarch                             fonts-srpm-macros-1:2.0.5-5.fc34.noarch        
Skipped:
  mongodb-org-4.4.10-1.el8.x86_64                mongodb-org-database-tools-extra-4.4.10-1.el8.x86_64         
  mongodb-org-tools-4.4.10-1.el8.x86_64         

Complete!

Step 4: Enable the MongoDB service by using the below command.

 [root@linuxhelp ~]# systemctl enable mongod.service

Step 5: Start the MongoDB service by using the below command.

[root@linuxhelp ~]# systemctl start mongod.service

Step 6: Check the status of MongoDB service by using the below command.

[root@linuxhelp ~]# systemctl status mongod.service
● mongod.service - MongoDB Database Server
     Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-12-15 06:58:02 IST; 22s ago
       Docs: https://docs.mongodb.org/manual
    Process: 52398 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
    Process: 52399 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
    Process: 52400 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
    Process: 52401 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 52403 (mongod)
     Memory: 57.5M
        CPU: 967ms
     CGroup: /system.slice/mongod.service
             └─52403 /usr/bin/mongod -f /etc/mongod.conf

Dec 15 06:58:01 linuxhelp systemd[1]: Starting MongoDB Database Server...
Dec 15 06:58:01 linuxhelp mongod[52401]: about to fork child process, waiting until server is ready for conne>
Dec 15 06:58:01 linuxhelp mongod[52403]: forked process: 52403
Dec 15 06:58:02 linuxhelp mongod[52401]: child process started successfully, parent exiting


Dec 15 06:58:02 linuxhelp systemd[1]: Started MongoDB Database Server.
lines 1-19/19 (END)

Step 7: Check the status of MongoDB service by using the below command.

[root@linuxhelp ~]# mongo --version
MongoDB shell version v4.4.4
Build Info: {
    "version": "4.4.4",
    "gitVersion": "8db30a63db1a9d84bdcad0c83369623f708e0397",
    "openSSLVersion": "OpenSSL 1.1.1k  FIPS 25 Mar 2021",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "rhel80",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

With this, process of installing and configure MongoDB on Fedora 34 comes to an end

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is a Relational database?

A

Relational databases store data in rows and columns like a spreadsheet

Q

What is Non Relational database?

A

A non-relational database is any database that is not like relational databases.
Rather, its storage model is customized for the type of data it’s storing.

Q

Differentiate SQL and NoSQL?

A

SQL databases are relational, NoSQL databases are non-relational

Q

How NoSQL database stores the data?

A

NoSQL databases stores information
in JSON documents instead of columns and rows used by relational databases

Q

What do you mean by a NoSQL database?

A

A NoSQL refers to a non SQL or non-relational database that provides a mechanism for storage and retrieval of data.

Related Tutorials in How to install and configure MongoDB on Fedora 34

Related Tutorials in How to install and configure MongoDB on Fedora 34

How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to Install Grafana on Linux Servers
How to Install Grafana on Linux Servers
Feb 27, 2018
How to install TigerVNC Server to Access Remote Desktops
How to install TigerVNC Server to Access Remote Desktops
Apr 27, 2016
How to Install PostgreSQL in FreeBSD
How to Install PostgreSQL in FreeBSD
Nov 9, 2016
How to install Unity Hub on Fedora 34
How to install Unity Hub on Fedora 34
May 14, 2022
How to install Wordpress CMS V4.9.6 on Fedora-28
How to install Wordpress CMS V4.9.6 on Fedora-28
Jun 9, 2018
How to install ampps web server in Ubuntu
How to install ampps web server in Ubuntu
Jul 14, 2016
How to install DataGrip in Ubuntu
How to install DataGrip in Ubuntu
Jul 23, 2016

Related Forums in How to install and configure MongoDB on Fedora 34

Related Forums in How to install and configure MongoDB on Fedora 34

Mongodb
jacob class=
Job for mongod.service failed because the control process exited with error code
Nov 30, 2019
Mongodb
grayson class=
Error parsing YAML config file: yaml-cpp: error at line 30, column 3: end of map not found In MongoDB 4.0.11
Aug 31, 2019
Mongodb
elijah class=
Couldn't connect to server 127.0.0.1:27017
Oct 18, 2021
Mongodb
caden class=
Unrecognized option: security In MongoDB 4.0.11 On CentOS 7.6
Aug 31, 2019
Database
john class=
Warning: mysqli::__construct(): (HY000/2002): No route to host
May 23, 2017
MySQL
gabriel class=
ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 42. Created with MySQL 50560, now running 50642
Dec 14, 2018
Fedora
jacob class=
Error: Failed to synchronize cache for repo 'updates'
Oct 23, 2021
Mongodb
elijah class=
Error 1067 : The process terminated unexpectedly
Oct 19, 2021

Related News in How to install and configure MongoDB on Fedora 34

Related News in How to install and configure MongoDB on Fedora 34

Mongodb data being held on compensation
Mongodb data being held on compensation
Jan 5, 2017
Fedora 27 is finally available for download
Fedora 27 is finally available for download
Nov 15, 2017
Security breach in Indiana Pacers Database
Security breach in Indiana Pacers Database
May 24, 2019
GandCrab Ransomware Infection Made by Scanning MySQL Databases
GandCrab Ransomware Infection Made by Scanning MySQL Databases
May 28, 2019
Unprotected MongoDB with 180M user data exposed
Unprotected MongoDB with 180M user data exposed
Jul 22, 2019
MongoDB database without password protection exposes prescription information of over 78,000 US patients.
MongoDB database without password protection exposes prescription information of over 78,000 US patients.
Jun 27, 2019
32-bit Linux systems with Fedora 31 will no longer be supported
32-bit Linux systems with Fedora 31 will no longer be supported
Oct 14, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.