mxlinux install mongodb issue: unrecognized service how to resolve
If you follow mongodb installation instruction, https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/, will find error when trying to start the service.
That's because mx linux uses SysV init instead of systemd, but the apt installation didn't include a SysV script.
How to fix:
The init script could be downloaded from https://github.com/mongodb/mongo/blob/master/debian/init.d
Save it as /etc/init.d/mongod
Restart computer
$ sudo service mongod start
test launching succesful
$ sudo service mongod status
connect to the local mongodb server
$ mongosh
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home