MongoDB/Install:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第31行: 第31行:
sudo chown -R $(whoami) $(brew --prefix)/*
sudo chown -R $(whoami) $(brew --prefix)/*
</syntaxhighlight>|➜  ~}}
</syntaxhighlight>|➜  ~}}
{{shc|<syntaxhighlight lang="bash">
再执行。
brew reinstall mongodb-community</syntaxhighlight>|➜  ~}}
{{Shc_out|<syntaxhighlight lang="bash">
brew reinstall mongodb-community
</syntaxhighlight>|<syntaxhighlight lang="bash">
==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.6.tgz
Already downloaded: /Users/kangjian/Library/Caches/Homebrew/downloads/6d6c69ce66861b3aac721c356f0d9560ccd34acc1b74b7ff669532fbebf8cc0c--mongodb-macos-x86_64-5.0.6.tgz
==> Reinstalling mongodb/brew/mongodb-community
==> Caveats
To start mongodb/brew/mongodb-community now and restart at login:
  brew services start mongodb/brew/mongodb-community
Or, if you don't want/need a background service you can just run:
  mongod --config /usr/local/etc/mongod.conf
==> Summary
🍺  /usr/local/Cellar/mongodb-community/5.0.6: 11 files, 181.5MB, built in 5 seconds
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Pruned 3 symbolic links and 4 directories from /usr/local
</syntaxhighlight>|➜  ~}}


=== Windows ===
=== Windows ===