Mac下的宝塔面板中安装了MongoDB,但是启动时候执行 sudo systemctl start mongod 报错“Failed to get D-Bus connection: Operation not permitted”。经过查找记录一下解决方法:
1 先做备份
mv /usr/bin/systemctl /usr/bin/systemctl.old
2 下载 systemctl文件
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
3 赋予权限
chmod +x /usr/bin/systemctl
4 完成
如需转载请注明: 转载自26点的博客
本文链接地址: Failed to get D-Bus connection: Operation not permitted 的解决
转载请注明:26点的博客 » Failed to get D-Bus connection: Operation not permitted 的解决