After the mac installation mongodb succeeds, an error is reported when starting up as shown in the figure. PID has been turned off or not. How to solve it?

  mongodb, question

clipboard.png

address already in use
Indicates that the port is occupied
Use commandlsof -i:27017See if this port is occupied, kill it if you can, and replace it if you cannot.

clipboard.png