Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

Can't start mongodb service [fail] on wsl

$
0
0

I'm trying to start mongodb service by following the guide but I can't start it in any ways.I'm on WSL and I'm using Ubuntu 24.04.2 on windows 10.

I'm on WSL and I'm following the guide for System V Init by doing the
sudo service mongod start.
but I gotmongod: unrecognized service.
So I tried to use this solution as this answer says.
It seemed to work but then when I start mongod service I recieve this message:
* Starting database mongod [fail]

I've also tried to start it by installing mongodb package:
sudo apt install mongodb
but than I get the following error:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage mongodb is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'mongodb' has no installation candidate

Obiouvsly systemctl ways can't work because of WSL.\

How can I start it than?


Viewing all articles
Browse latest Browse all 2795

Trending Articles