Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!.
edited title
Link
NotTheDr01ds

Running Elasticsearch on Ubuntu on WSL: "System has not been booted with systemd as init system (PID 1). Can't operate."

Mostly clarifying that the error appears when attempting to start Elasticsearch rather than just when installing
Source Link
NotTheDr01ds

System has not been booted with systemd as init system (PID 1). Can't operate while trying to install elasticsearch Running Elasticsearch on Ubuntu on WSL

I'm using WSL on windowsWindows 11 (with Ubuntu 22.04 LTS) and trying to use elasticsearchElasticsearch on it. When I run sudo systemctl start elasticsearch.service, I get the error: System has not been booted with systemd as init system (PID 1). Can't operate.

System has not been booted with systemd as init system (PID 1). Can't operate.

I understand systemctlsystemctl is not available on WSL. So, I tried its alternative i.e., service elasticsearch start, but then I get the error: elasticsearch: unrecognized service.

I understand there's been similar phrased questions on this website but I have already tried the alternative command but it's not working. So, please help how I can resolve this issue. Thanks.

System has not been booted with systemd as init system (PID 1). Can't operate while trying to install elasticsearch

I'm using WSL on windows 11 (with Ubuntu 22.04 LTS) and trying to use elasticsearch on it. When I run sudo systemctl start elasticsearch.service, I get the error: System has not been booted with systemd as init system (PID 1). Can't operate.

I understand systemctl is not available on WSL. So, I tried its alternative i.e. service elasticsearch start but then I get the error: elasticsearch: unrecognized service.

I understand there's been similar phrased questions on this website but I have already tried the alternative command but it's not working. So, please help how I can resolve this issue. Thanks.

Running Elasticsearch on Ubuntu on WSL

I'm using WSL on Windows 11 (with Ubuntu 22.04 LTS) and trying to use Elasticsearch on it. When I run sudo systemctl start elasticsearch.service, I get the error:

System has not been booted with systemd as init system (PID 1). Can't operate.

I understand systemctl is not available on WSL. So, I tried its alternative, service elasticsearch start, but then I get the error: elasticsearch: unrecognized service.

I understand there's been similar phrased questions on this website but I have already tried the alternative command but it's not working. So, please help how I can resolve this issue.

Source Link
Zain

System has not been booted with systemd as init system (PID 1). Can't operate while trying to install elasticsearch

I'm using WSL on windows 11 (with Ubuntu 22.04 LTS) and trying to use elasticsearch on it. When I run sudo systemctl start elasticsearch.service, I get the error: System has not been booted with systemd as init system (PID 1). Can't operate.

I understand systemctl is not available on WSL. So, I tried its alternative i.e. service elasticsearch start but then I get the error: elasticsearch: unrecognized service.

I understand there's been similar phrased questions on this website but I have already tried the alternative command but it's not working. So, please help how I can resolve this issue. Thanks.