title: Installing MongoDB in WSL
body: <p>I was trying to install MongoDB in WSL running Ubuntu 18.04 after seeing <a href="https://docs.microsoft.com/en-us/windows/python/databases" rel="noreferrer">this</a> documentation. But MongoDB says that:</p>
  <blockquote>
  <p>IMPORTANT<br/>The <code>mongodb</code> package provided by Ubuntu is not maintained by MongoDB Inc. and conflicts with the official <code>mongodb-org</code> package. If you have already installed the mongodb package on your Ubuntu system, you must first uninstall the mongodb package before proceeding with these instructions.</p>
  </blockquote>
  <p>MongoDB also says that WSL doesn't support <code>mongodb-org</code></p>
  <blockquote>
  <p>WINDOWS SUBSYSTEM FOR LINUX (WSL) - UNSUPPORTED<br/>MongoDB does not support the Windows Subsystem for Linux (WSL).</p>
  </blockquote>
  <p>So, I installed <code>mongod</code> using <code>sudo apt install mongodb</code> and when I ran <code>mongo</code> it shows the error:</p>
  <pre><code>connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&amp;gssapiServiceName=mongodb
  2020-06-21T13:33:40.606+0530 E  QUERY    [js] Error: couldn't connect to server 127.0.0.1:27017
  </code></pre>
  <p>Is there is a way to install the appropriate package and make it running?</p>