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

To solve

Replace

with

logAppend: false

and then redo

Share the log file, we should get the real reason why it fails. The other error from the log you shared is from 2 days ago. Most likely you had another mongod running at that time.