9951 explained code solutions for 126 technologies


mongodbHow to install MongoDB on Fedora?


MongoDB can be installed on Fedora using the following steps:

  1. Install the MongoDB packages with the following command:
sudo dnf install mongodb-server mongodb
  1. Start the MongoDB service with the following command:
sudo systemctl start mongod
  1. Enable the MongoDB service to start on boot with the following command:
sudo systemctl enable mongod
  1. Verify that the MongoDB service is running with the following command:
sudo systemctl status mongod
  1. You should see the following output:
● mongod.service - MongoDB Database Server
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-08-20 11:45:17 UTC; 1min ago
 Main PID: 8093 (mongod)
    Tasks: 23 (limit: 4704)
   Memory: 64.2M
   CGroup: /system.slice/mongod.service
           └─8093 /usr/bin/mongod -f /etc/mongod.conf

Helpful links

Edit this code on GitHub