title: MongoDB - shutting down with code 48
body: <p>I am trying to start MongoDB but the terminal returns the following error:</p>
  
  <pre><code>2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] MongoDB starting : pid=25184 port=27017 dbpath=/data/db 64-bit host=Janiss-MacBook-Pro.local
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] db version v3.4.1
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2k  26 Jan 2017
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] allocator: system
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] modules: none
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] build environment:
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten]     distarch: x86_64
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten]     target_arch: x86_64
  2017-02-06T16:26:27.037+0000 I CONTROL  [initandlisten] options: {}
  2017-02-06T16:26:27.038+0000 E NETWORK  [initandlisten] listen(): bind() failed Address already in use for socket: 0.0.0.0:27017
  2017-02-06T16:26:27.038+0000 E NETWORK  [initandlisten]   addr already in use
  2017-02-06T16:26:27.038+0000 E NETWORK  [initandlisten] Failed to set up sockets during startup.
  2017-02-06T16:26:27.038+0000 E STORAGE  [initandlisten] Failed to set up listener: InternalError: Failed to set up sockets
  2017-02-06T16:26:27.038+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
  2017-02-06T16:26:27.038+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
  2017-02-06T16:26:27.039+0000 I CONTROL  [initandlisten] now exiting
  2017-02-06T16:26:27.039+0000 I CONTROL  [initandlisten] shutting down with code:48
  </code></pre>
  
  <p>I am using Laravel Valet if that matters.</p>