title: How do I download MongoDB Server on M1 Mac?
body: <p>I've tried probably 10 different sites looking how to download MongoDB on M1 Mac. And I would like to put this here for anyone who wants to make a step-by-step guide to get MongoDB working on M1 Macs. Feel free to edit this and provide your steps.</p>
  <p>For example if I run the following command (<code>brew install mongodb-community@4.4</code>), the following error occurs:</p>
  <pre><code>Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
  To rerun under ARM use:
      arch -arm64 brew install ...
  To install under x86_64, install Homebrew into /usr/local.
  </code></pre>
  <p>And then I try rerunning in ARM. And it installs successfully. Then I run <code>mongod</code> and get <code>zsh: command not found: mongod</code>. How is this possible?? It's weird because <code>mongo</code> command works just as expected. So mongodb-community is downloaded but I can't access the mongod command.</p>
  <p>Does anyone know why? I've tried changing the path but mongod isn't anywhere local...</p>
  <p>-- Starting from Rosetta Terminal:</p>