On my Mac,`brew services start mongodb-community@4.2` starts mongod process in unknown port

Means a process is already using the same address/port combination.

Share the output of

sudo netstat -l
brew services list