how do i know if local mongodb is running mac code example Example: check if mongodb is running mac ps -ef | grep mongod | grep -v grep | wc -l | tr -d ' '