– Please Write here your help request –
I have been trying to set up MongoDB server using their onsite guide for the Debian distro. everything goes well with no errors but I cannot start the mongo daemon (mongod) using both, (sudo systemctll start mongod) / (sudo service mongod start)
ParrotOS iso in use:
parrot os 5.0
Application used for flashing the iso:
Logs/Terminal output(use pastebin or similar services):
Jan 03 11:01:00 codesimonwise systemd[1]: Started MongoDB Database Server.
Jan 03 11:01:00 codesimonwise systemd[1]: mongod.service: Main process exited, >
Jan 03 11:01:00 codesimonwise systemd[1]: mongod.service: Failed with result 'e>
lines 1-11/11 (END)
Download a compressed folder of the MongoDB community server from their official site for the Debian 10 version (my Debian version). “mongodb-linux-x86_64-debian10-5.0.5.tgz” (find the best version according to your system)
Extract the folder to your home directory and rename it to ‘mongodb’ so the directory reads ‘/home/{userName}/mongodb’
Add another directory ‘mongodb-data’ for the database logs within the same home directory as the server’s i.e ‘/home/{userName}/mongodb-data’
Then to start the server using the ‘mongod’ file which is located within the bin folder inside the server folder, use the commands; /home/{userName}/mongodb/bin/mongod --dbpath=/home/{userName}/mongodb-data