2

I am trying to set up a Clickhouse server on my WSL which is based on CentOS. After following instructions in this page, and installing the DB successfully, when I want to enable the service I get following:

# systemctl enable clickhouse-server
clickhouse-server.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig clickhouse-server on

And when I want to start the service, I get the below error:

# systemctl start clickhouse-server
Failed to get D-Bus connection: Operation not permitted

I googled but all I got were issues about CentOS docker images which did not work for me. Is there any way to make it work?

2 Answers 2

0

I've been googling the exact same thing.

apachectl start in Centos7 seems to work for me. Same with mariadb.

Not sure how helpful that is. I've run httpd directly. Maybe you could do the same with clickhouse?

0

I had the same issue trying to run "systemctl" on a CentOS 7 WSL2 distribution.

Following the steps described in https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ worked for me.

TL;DR: add a "/etc/wsl.conf" file with the contents below to your WSL distribution filesystem. After a complete shutdown of wsl with "wsl --shutdown", your VM should allow "systemctl".

[boot] systemctl=true

New contributor
Raul Costa Junior is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .