1

I am trying to run mongod on m1 pro macbook, but getting the following log :

enter image description here

Can anyone give solution for this

Beso
  • 1,176
  • 5
  • 12
  • 26
Fanindhra
  • 11
  • 2
  • 1
    "address already in use" means there is already something listening on port 27017. Is there a mongod already running? – Joe Nov 14 '21 at 10:38
  • when I checked activity monitor it is running in background, but in brew services it is showing as stopped. And i was able to use mongo and monogoosh commands without any error – Fanindhra Nov 15 '21 at 11:09

1 Answers1

0

Please change the mongodb default port to something like '27030' in the mongod.conf file. Usually you can find this file in this path '/usr/local/etc/mongod.conf.'. Then try to establish the connection. Let me know if you face any issues.

Arun R
  • 46
  • 2