-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue Installing MariaDB on CentOS7 WSL: Failed to get D-Bus connection: Operation not permitted #17
Comments
then systemd is true:
|
在wsl中执行systemctl相关命令报错 Failed to get D-Bus connection: Operation not permitted 备份systemctlmv /usr/bin/systemctl /usr/bin/systemctl.bak 写入systemctl脚本curl https://gitee.com/umico/docker-systemctl-replacement/raw/master/files/docker/systemctl.py > /usr/bin/systemctl 授予执行权限chmod +x /usr/bin/systemctl |
@fzxfzx12345 升级wsl软件本身即可支持识别/etc/wsl.conf文件 |
For additional info on using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, awesome work on creating this for WSL. Really really useful, thank you.
I am following instructions given in here to install MariaDB on CentOS7 for WSL in Windows 11.
sudo yum install mariadb-server
works with no problems as expected. However,sudo systemctl start mariadb
will run into the following issue:So I enabled
systemd
by adding the following to/etc/wsl.conf
I shutdown
wsl
and restarted it.systemctl list-units --type=service
will produce the proper results indicatingsystemd
is working. However, I am still gettingFailed to get D-Bus connection
.Is there any way to get MariaDB server to work in CentOS 7 for WSL?
The text was updated successfully, but these errors were encountered: