Hello @Shahima_khan,

I just had the same issue and the problem for me was that I did not stop the services before running the ‘mongod --config /opt/hombrew/etc/mongod.conf --fork’ command. From reading the thread I believe your issue is the same.

Try running ‘brew services stop mongodb-community@{version}

Then run 'mongod --config /opt/hombrew/etc/mongod.conf --fork’.

Hope this helps!

1 Like