I am trying to install mongodb on ubuntu 16.10, though it's not listed in supported versions. I first got this error trying to start the mongo shell:
MongoDB shell version v4.0.0
connecting to: mongodb://127.0.0.1:27017
2018-07-12T11:15:00.464+0200 E QUERY [js] 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:251:13
@(connect):1:6
exception: connect failed
I tried running sudo service mongod start
but I'm getting Unit mongod.service not found.
I also tried modifying the mongodb.service file, checking for locked files, running repair commands and reinstalling mongo.
Logging files are not found in the specified location in mongod.conf
, there is no mongodb
directory in /var/log
.