mongodbHow to install MongoDB on Fedora?
MongoDB can be installed on Fedora using the following steps:
- Install the MongoDB packages with the following command:
sudo dnf install mongodb-server mongodb
- Start the MongoDB service with the following command:
sudo systemctl start mongod
- Enable the MongoDB service to start on boot with the following command:
sudo systemctl enable mongod
- Verify that the MongoDB service is running with the following command:
sudo systemctl status mongod
- 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
Related
More of Mongodb
- How to use watch in MongoDB?
- What is MongoDB default port?
- How to perform a health check for MongoDB?
- How to list all indexes in MongoDB?
- How to use eq in MongoDB?
- How to update one document in MongoDB?
- How to order query results in MongoDB?
- How to check if array is empty in MongoDB?
- How to query with "not equal" condition in MongoDB?
- How to use transactions in MongoDB?
See more codes...