Segui tutorial do link https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ . A instalação ocorreu sem problemas, mas quando vou dar start aparece seguinte erro:
mongodb.service - High-performance, schema-free document-oriented >database Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: Active: failed (Result: exit-code) since Tue 2021-01-26 22:41:14 -03; 9min ag Main PID: 15551 (code=exited, status=14)
Ai quando executo o comando mongo retorna seguinte problema:
MongoDB shell version v4.4.3 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused : connect@src/mongo/shell/mongo.js:374:17 @(connect):2:6 exception: connect failed exiting with code 1
Estou usando Ubuntu 18.04 e Mongo na ultima versão