【发布时间】:2014-11-07 18:03:28
【问题描述】:
我目前在 OS/X 上使用 macbook。我想停止运行 mongodb 服务的实例。因此我尝试了:
> sudo service mongodb stop
sudo: service: command not found
在 Google 上查找后,他们要求我添加 PATH,因此我做了以下操作:
> `vim ~/.bash_profile` (created a new bash_profile) and added the following there:
export PATH=/usr/bin:/usr/sbin:/bin:/usr/local/bin:/sbin:/opt/x11/bin:$PATH
它似乎不起作用,我仍然得到同样的错误:
【问题讨论】:
-
你是怎么安装mongodb的?
-
如果您花一些时间阅读有关what topics are welcome here 的信息,我认为整个社区和您也会受益。请考虑关闭您的问题并改为在Unix & Linux 或Super User 中提问。
标签: linux mongodb macos service path