Failed to get D-Bus connection: Operation not permitted 的解决

Python/Go 林涛 139℃ 0评论

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 的解决

喜欢 (0)or分享 (0)
0 0 投票数
文章评分
订阅评论
提醒
guest

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

0 评论
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x