# start the server:
mongod --dbpath /path/to/data/to/be/stored --logpath /log/path/mongo.log
# enter the shell:
mongo
# or
mongos
Created
June 6, 2022 20:01
-
-
Save alaztetik/650d2b8698ecb53a1c529cc56bc320e1 to your computer and use it in GitHub Desktop.
How to run mongod (server) and mongo/mongos shell on Linux
You can specify a port number:
sudo mongod --port 27018
and open a shell on that port:
mongo --port 27018
On Manjaro / Arch, it now uses openssl-1.3, but MongoDB still requires 1.1.
So there is now a dependency problem.
Started MongoDB Database Server.
/usr/bin/mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
mongodb.service: Main process exited, code=exited, status=127/n/a
mongodb.service: Failed with result 'exit-code'.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there is a problem (a failed connection) try this:
Credit