
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 também ao usar serviço em vez de serviços.
Responder1
Não há nenhum comando chamado brew services
.
Estes existem:
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
Você pode instalá-lo 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
Responder2
Primeiro, instale os serviços de fermentação tocando em homebrew/boneyard (uma vez):
brew tap homebrew/boneyard
Nota: Configure o launchctl para iniciar automaticamente o mongo
$ launchctl carregar ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist $ launchctl descarregar ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist
fonte :http://robots.thoughtbot.com/starting-and-stopping-background-services-with-homebrew