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?
- How to check the version of MongoDB?
- How to work with time series data in MongoDB?
- How to update many documents in MongoDB?
- How to update an array element in MongoDB?
- How to use triggers in MongoDB?
- How to use unwind in MongoDB?
- How to list MongoDB users?
- How to remove a field from MongoDB?
- How to use MongoDB queue?
See more codes...