Since the process is killed after t starts, I thought it would be broken, but instead, it might be a security setting preventing it to run.
check the “note” part few lines below this section of the installation guide: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/#connect-and-use-mongodb