问题:运行mongodb like service的一些问题

我正在尝试按照此脚本配置运行类似 Mongodb 的服务。然后,当我尝试执行以下任何命令时:

service mongodb [start|stop|restart]
service mongoconf [start|stop|restart]
service mongos [start|stop|restart]

我遇到了这个问题。

vagrant@sandbox-dev:~$ service mongodb start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.5" (uid=1000 pid=1296 comm="start mongodb ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

我在我的 Vagrant VM 上使用 ubuntu 12.04

谢谢你的帮助..!!

解答

只需添加 sudo

sudo service mongodb [start|stop|restart]
sudo service mongoconf [start|stop|restart]
sudo service mongos [start|stop|restart]
Logo

MongoDB社区为您提供最前沿的新闻资讯和知识内容

更多推荐