problemas al iniciar MongoDB usando homebrew

problemas al iniciar MongoDB usando homebrew
Bobs-MacBook-Pro-2:~ bobhannan$ brew services start mongodb
Error: Unknown command: services


Bobs-MacBook-Pro-2:~ bobhannan$ brew services list
Error: Unknown command: services

Problema también al utilizar servicios en lugar de servicios.

Respuesta1

No hay ningún comando llamado brew services.

Estos existen:

  brew install 
  brew uninstall 
  brew search
  brew list 
  brew update
  brew upgrade 
  brew pin/unpin 
  brew doctor
  brew install -vd 
  brew --env | config
  brew create URL --no-fetch
  brew edit 

Puedes instalarlo usando:

curl -o /usr/local/bin/brew-services.rb https://gist.githubusercontent.com/lwe/766293/raw/75a7907004bbff0eb3b072d1d951be2cfe7e5020/brew-services.rb
chmod +x /usr/local/bin/brew-services.rb
brew services help

Respuesta2

Primero, instale los servicios de elaboración de cerveza tocando homebrew/boneyard (una vez):

brew tap homebrew/boneyard

Nota: configure launchctl para iniciar automáticamente mongo

$ carga launchctl ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist $ descarga launchctl ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist

fuente :http://robots.thinkbot.com/starting-and-stopping-background-services-with-homebrew

información relacionada